Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
motion_event.just_went_down
# 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)
+ redef fun pointer_id 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);
# Is this a movement event?
fun is_move: Bool is abstract
+
+ # Unique identifier of this pointer among other active pointers
+ #
+ # This value is useful to differentiate between pointers (or fingers) on
+ # multi-touch systems. This value does not change for the same pointer
+ # while it touches the screen.
+ fun pointer_id: Int do return 0
end
# A motion event on screen composed of many `PointerEvent`