Remove unnecessarry check for AMotionEvent_getX

Unlike getAxis getX is always present and doesn't need to be checked
This commit is contained in:
Vladimir Serbinenko 2020-01-28 17:00:28 +01:00
parent d0a2315098
commit 14c24e1fab

View File

@ -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);