diff --git a/input/drivers/android_input.c b/input/drivers/android_input.c index f387223fa9..8b8e24c89b 100644 --- a/input/drivers/android_input.c +++ b/input/drivers/android_input.c @@ -698,7 +698,7 @@ static INLINE void android_mouse_calculate_deltas(android_input_t *android, * compared to AXIS_RELATIVE because once the Android mouse cursor hits the edge of the screen it is * not possible to move the in-game mouse any further in that direction. */ - if (!x && !y && AMotionEvent_getX && AMotionEvent_getX) + if (!x && !y) { x = (AMotionEvent_getX(event, motion_ptr) - android->mouse_x_prev); y = (AMotionEvent_getY(event, motion_ptr) - android->mouse_y_prev);