mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Merge pull request #642 from MarioLiebisch/android-fingerfix
[Android] Fixed redundant touch moved events
This commit is contained in:
commit
c522f6d596
@ -368,6 +368,9 @@ void WindowImplAndroid::processMotionEvent(AInputEvent* _event, ActivityStates*
|
||||
}
|
||||
else if (device == AINPUT_SOURCE_TOUCHSCREEN)
|
||||
{
|
||||
if (states->touchEvents[id].x == x && states->touchEvents[id].y == y)
|
||||
continue;
|
||||
|
||||
event.touch.finger = id;
|
||||
event.touch.x = x;
|
||||
event.touch.y = y;
|
||||
|
Loading…
Reference in New Issue
Block a user