kroart
Member
Looks like GMS has a bug with Glob Left Down event on Android devices when they do not have navigation buttons.
For example I have this code in Glob Left Down event:
This simply prints lines into the Output window when you touch the screen.
The problem starts when the game became minimized by using a swipe-up gesture. Like this:
After you go back to the game Glob Left Down event starts to constantly fire until you touch the screen again.
And it seems that there is no way to avoid this. I posted a bug report to YYG but they say that I shouldn't use mouse events on mobile devices. But the manual says that I can use more events on mobile devices: "Please note that on mobile or touch-screen devices the left mouse button
can also be used to check for a finger tab on a touch screen" (BTW looks like there is a typo: tab -> tap)
Also, I tried to use device_mouse_check_button(0, mb_left) function - it's also starting to return 'true' after the game was minimized.
For me, this is a bug, but YYG support says it's not. And I do not see a way to avoid this behavior.
For example I have this code in Glob Left Down event:
GML:
show_debug_message("glob left down")
The problem starts when the game became minimized by using a swipe-up gesture. Like this:
And it seems that there is no way to avoid this. I posted a bug report to YYG but they say that I shouldn't use mouse events on mobile devices. But the manual says that I can use more events on mobile devices: "Please note that on mobile or touch-screen devices the left mouse button
Also, I tried to use device_mouse_check_button(0, mb_left) function - it's also starting to return 'true' after the game was minimized.
For me, this is a bug, but YYG support says it's not. And I do not see a way to avoid this behavior.