/* Emulate a mouse with the touch events of a single finger. If more
fingers appear while the first one is held down, they are ignored, even if
the first finger is released. */
/* Emulate a mouse with the touch events of a single finger. If more
fingers appear while the first one is held down, they are ignored, even if
the first finger is released. */
{
float x = AMotionEvent_getX(event.aevent, pointer_zero);
float y = AMotionEvent_getY(event.aevent, pointer_zero);
{
float x = AMotionEvent_getX(event.aevent, pointer_zero);
float y = AMotionEvent_getY(event.aevent, pointer_zero);
- set_axis_value(0, x*2/window.get_width()-1, true);
- set_axis_value(1, 1-y*2/window.get_height(), true);
+ set_axis_value(MOUSE_X_AXIS, x*2/window.get_width()-1, true);
+ set_axis_value(MOUSE_Y_AXIS, 1-y*2/window.get_height(), true);