android :: NativeAndroidMotionEvent :: index_down_pointer
Get the non-primary pointer id that just went down (returns -1 or > 0)android $ NativeAndroidMotionEvent :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
core :: Pointer :: defaultinit
android :: NativeAndroidMotionEvent :: index_down_pointer
Get the non-primary pointer id that just went down (returns -1 or > 0)core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha value
private extern class NativeAndroidMotionEvent `{AInputEvent *`}
fun pointers_count: Int `{
return AMotionEvent_getPointerCount(self);
`}
fun edge: Int `{
return AMotionEvent_getEdgeFlags(self);
`}
# Get the non-primary pointer id that just went down (returns -1 or > 0)
fun index_down_pointer: Int `{
int a = AMotionEvent_getAction(self);
if ((a & AMOTION_EVENT_ACTION_MASK) == AMOTION_EVENT_ACTION_POINTER_DOWN)
return (a & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) >> AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT;
else return -1;
`}
fun action: AMotionEventAction `{ return AMotionEvent_getAction(self); `}
fun native_down_time: Int `{ return AMotionEvent_getDownTime(self); `}
end
lib/android/input_events.nit:54,1--75,3