diff options
author | sfan5 <sfan5@live.de> | 2021-03-07 01:50:11 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-03-07 02:05:10 +0100 |
commit | dfe077134daa87babfca64dcb3b657cb822bedfd (patch) | |
tree | 82ed2f72d8062f96b24888ff9712c6ef1d451a19 /source/Irrlicht/Android/CIrrDeviceAndroid.cpp | |
parent | 10a188e967da36b3e50e1b87806a231d0be7a097 (diff) | |
download | irrlicht-dfe077134daa87babfca64dcb3b657cb822bedfd.tar.xz |
Android: import touchedCount patch
Diffstat (limited to 'source/Irrlicht/Android/CIrrDeviceAndroid.cpp')
-rw-r--r-- | source/Irrlicht/Android/CIrrDeviceAndroid.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Irrlicht/Android/CIrrDeviceAndroid.cpp b/source/Irrlicht/Android/CIrrDeviceAndroid.cpp index c88ee34..d35969b 100644 --- a/source/Irrlicht/Android/CIrrDeviceAndroid.cpp +++ b/source/Irrlicht/Android/CIrrDeviceAndroid.cpp @@ -393,6 +393,7 @@ s32 CIrrDeviceAndroid::handleInput(android_app* app, AInputEvent* androidEvent) event.TouchInput.ID = AMotionEvent_getPointerId(androidEvent, i);
event.TouchInput.X = AMotionEvent_getX(androidEvent, i);
event.TouchInput.Y = AMotionEvent_getY(androidEvent, i);
+ event.TouchInput.touchedCount = AMotionEvent_getPointerCount(androidEvent);
device->postEventFromUser(event);
}
@@ -404,6 +405,7 @@ s32 CIrrDeviceAndroid::handleInput(android_app* app, AInputEvent* androidEvent) event.TouchInput.ID = AMotionEvent_getPointerId(androidEvent, pointerIndex);
event.TouchInput.X = AMotionEvent_getX(androidEvent, pointerIndex);
event.TouchInput.Y = AMotionEvent_getY(androidEvent, pointerIndex);
+ event.TouchInput.touchedCount = AMotionEvent_getPointerCount(androidEvent);
device->postEventFromUser(event);
}
|