Merge pull request #642 from MarioLiebisch/android-fingerfix

[Android] Fixed redundant touch moved events
This commit is contained in:
Jonathan De Wachter 2014-06-21 20:18:41 +02:00
commit c522f6d596

View File

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