• Hey! Guest! The 37th GMC Jam will take place between May 28th, 12:00 UTC and June 1st, 12:00 UTC. Why not join in! Click here to find out more!

mouse_check_button_pressed(mb_left) not triggering fast enough on iOS

I have a simple step function on an object with :

if (mouse_check_button_pressed(mb_left)) {
show_debug_message("IN!!");
}
if (mouse_check_button_released(mb_left)) {
show_debug_message("OUT!!");
}

When i click as fast as I can in the yoyo runner with my mouse, everything works correctly and all messages corresponding to clicks and releases are displayed.

When I tap as fast as I can on my iPhone, only about half of the taps are triggered. It tried setting the
gesture_double_tap_time(0.0) and increasing the gesture_drag_time(0.3) but those only play a role in the gesture events. I don't want to use the tap gesture event since i was triggering even less than in the step function.
 
M

mst3kdavid

Guest
I have a simple step function on an object with :

if (mouse_check_button_pressed(mb_left)) {
show_debug_message("IN!!");
}
if (mouse_check_button_released(mb_left)) {
show_debug_message("OUT!!");
}

When i click as fast as I can in the yoyo runner with my mouse, everything works correctly and all messages corresponding to clicks and releases are displayed.

When I tap as fast as I can on my iPhone, only about half of the taps are triggered. It tried setting the
gesture_double_tap_time(0.0) and increasing the gesture_drag_time(0.3) but those only play a role in the gesture events. I don't want to use the tap gesture event since i was triggering even less than in the step function.
try putting it in the mouse button pressed/released event instead of step event. doubt it will change much good luck
 

CloseRange

Member
when you tap fast GM registures double tap as right click
if you don't need double tapping then do this:
Code:
device_mouse_dbclick_enable(false);
then set it to true when you need it again
 
Top