• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android Problem with Glob Left Down event on devices without navigation buttons

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:
GML:
show_debug_message("glob left down")
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
LMB Icon
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. :confused:
 
Top