Gasil
Member
Hello, I'm using:
I'm drawing them in draw gui. I then create an APK of the test project. In my cellphone, I put my finger on the screen and the coordinates refresh as expected, giving me my finger's coordinates in relation to the screen as I move the finger around.
However I noticed this strange behaviour: there seems to be a 12 or 11 pixel "range radius" from the moment you put your finger on the screen and when you start dragging it across the screen before xTouch and yTouch start updating correctly.
In other words, even if you're legit dragging your finger a little bit on the screen, xTouch and yTouch won't update unless you drag your finger 12 pixels away from the point you initially touched the screen. Weirdly enough, you can override those 12 pixels if you put a finger on the screen already before using another finger to move it around, then device_mouse_x/y_to_gui(1) will update correctly without having to exceed a 12 pixel distance.
Do you know if this is some android limitation, or there can be done something about it in GM2 to override it using solely finger/device 0? I tried messing around with the gesture functions like this:
device_mouse_dbclick_enable(false);
gesture_drag_time(0);
gesture_flick_speed(0);
gesture_drag_distance(0);
gesture_double_tap_time(0);
gesture_tap_count(false)
But they seem to affect nothing regarding that behaviour. It is making reliable touchscreen controls a bit difficult. This has happened in several test devices.
Thank you.
GML:
xTouch = device_mouse_x_to_gui(0);
yTouch = device_mouse_y_to_gui(0);
//And also tried:
xTouch = device_mouse_x(0);
yTouch = device_mouse_y(0);
However I noticed this strange behaviour: there seems to be a 12 or 11 pixel "range radius" from the moment you put your finger on the screen and when you start dragging it across the screen before xTouch and yTouch start updating correctly.
In other words, even if you're legit dragging your finger a little bit on the screen, xTouch and yTouch won't update unless you drag your finger 12 pixels away from the point you initially touched the screen. Weirdly enough, you can override those 12 pixels if you put a finger on the screen already before using another finger to move it around, then device_mouse_x/y_to_gui(1) will update correctly without having to exceed a 12 pixel distance.
Do you know if this is some android limitation, or there can be done something about it in GM2 to override it using solely finger/device 0? I tried messing around with the gesture functions like this:
device_mouse_dbclick_enable(false);
gesture_drag_time(0);
gesture_flick_speed(0);
gesture_drag_distance(0);
gesture_double_tap_time(0);
gesture_tap_count(false)
But they seem to affect nothing regarding that behaviour. It is making reliable touchscreen controls a bit difficult. This has happened in several test devices.
Thank you.
Last edited: