d4e4b9c3ed8b343577a0cfb992ae58d5e7977052
[oweals/minetest.git] / build / android / irrlicht-touchcount.patch
1 --- irrlicht.orig/include/IEventReceiver.h      2014-06-03 19:43:50.433713133 +0200
2 +++ irrlicht/include/IEventReceiver.h   2014-06-03 19:44:36.993711489 +0200
3 @@ -375,6 +375,9 @@
4          // Y position of simple touch.\r
5                 s32 Y;\r
6  \r
7 +               // number of current touches\r
8 +               s32 touchedCount;\r
9 +\r
10                 //! Type of touch event.\r
11                 ETOUCH_INPUT_EVENT Event;\r
12         };\r
13 --- irrlicht.orig/source/Irrlicht/Android/CIrrDeviceAndroid.cpp 2014-06-03 19:43:50.505713130 +0200
14 +++ irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.cpp      2014-06-03 19:45:37.265709359 +0200
15 @@ -315,6 +315,7 @@
16                                                 event.TouchInput.ID = AMotionEvent_getPointerId(androidEvent, i);\r
17                                                 event.TouchInput.X = AMotionEvent_getX(androidEvent, i);\r
18                                                 event.TouchInput.Y = AMotionEvent_getY(androidEvent, i);\r
19 +                                               event.TouchInput.touchedCount = AMotionEvent_getPointerCount(androidEvent);\r
20  \r
21                                                 device->postEventFromUser(event);\r
22                                         }\r
23 @@ -326,6 +327,7 @@
24                                         event.TouchInput.ID = AMotionEvent_getPointerId(androidEvent, pointerIndex);\r
25                                         event.TouchInput.X = AMotionEvent_getX(androidEvent, pointerIndex);\r
26                                         event.TouchInput.Y = AMotionEvent_getY(androidEvent, pointerIndex);\r
27 +                                       event.TouchInput.touchedCount = AMotionEvent_getPointerCount(androidEvent);\r
28  \r
29                                         device->postEventFromUser(event);\r
30                                 }\r