mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
(Android) Use AMotionEvent_getPointerCount() > 0
This commit is contained in:
parent
3eabba50f9
commit
22f5f67522
@ -292,8 +292,10 @@ static void android_input_poll(void *data)
|
||||
i = state_device_ids[id] = pads_connected++;
|
||||
|
||||
int motion_action = AMotionEvent_getAction(event);
|
||||
int pointer_count = AMotionEvent_getPointerCount(event);
|
||||
bool motion_do = ((motion_action == AMOTION_EVENT_ACTION_DOWN) || (motion_action ==
|
||||
AMOTION_EVENT_ACTION_POINTER_DOWN) || (motion_action == AMOTION_EVENT_ACTION_MOVE));
|
||||
AMOTION_EVENT_ACTION_POINTER_DOWN) || (motion_action == AMOTION_EVENT_ACTION_MOVE)
|
||||
&& pointer_count);
|
||||
|
||||
if(type == AINPUT_EVENT_TYPE_MOTION && motion_do)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user