nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
876f9ca
)
lib/android: intro the real `pointer_id`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sat, 4 Jul 2015 20:40:42 +0000
(16:40 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 9 Jul 2015 20:28:03 +0000
(16:28 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/android/input_events.nit
patch
|
blob
|
history
diff --git
a/lib/android/input_events.nit
b/lib/android/input_events.nit
index
41ac311
..
a87104d
100644
(file)
--- a/
lib/android/input_events.nit
+++ b/
lib/android/input_events.nit
@@
-192,6
+192,13
@@
class AndroidPointerEvent
do
return motion_event.down_pointer == self
end
+
+ # Unique id of this pointer since the beginning of the gesture
+ fun pointer_id: Int do return native_pointer_id(motion_event.native, pointer_index)
+
+ private fun native_pointer_id(motion_event: NativeAndroidMotionEvent, pointer_index: Int): Int `{
+ return AMotionEvent_getPointerId(motion_event, pointer_index);
+ `}
end
# An hardware key event