Cleanup AMotionEvent_getAxisValue check

I though it was a weak loading but in fact it's explicit so
loading with some define magic, so we need to check for p_AMotionEvent_getAxisValue
to be clean. Binary code is actually the same

Tested by reverting path fix
This commit is contained in:
Vladimir Serbinenko 2020-01-28 17:32:38 +01:00
parent 6d8cbd2c4b
commit 193d40bae4

View File

@ -687,7 +687,7 @@ static INLINE void android_mouse_calculate_deltas(android_input_t *android,
}
/* This axis is only available on Android Nougat and on Android devices with NVIDIA extensions */
if (AMotionEvent_getAxisValue)
if (p_AMotionEvent_getAxisValue)
{
x = AMotionEvent_getAxisValue(event,AMOTION_EVENT_AXIS_RELATIVE_X, motion_ptr);
y = AMotionEvent_getAxisValue(event,AMOTION_EVENT_AXIS_RELATIVE_Y, motion_ptr);