mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Remove unnecessarry check for AMotionEvent_getX
Unlike getAxis getX is always present and doesn't need to be checked
This commit is contained in:
parent
d0a2315098
commit
14c24e1fab
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user