gamnit $ GamnitIOSPointerEvent :: SELF
Type of this instance, automatically specialized in every classgamnit $ GamnitIOSPointerEvent :: pointer_id
Unique identifier of this pointer among other active pointersgamnit $ GamnitIOSPointerEvent :: pressed
Is down? either going down or already downcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
mnit :: InputEvent :: defaultinit
mnit :: PointerEvent :: defaultinit
core :: Object :: defaultinit
mnit :: PointerEvent :: depressed
Is it not currently pressed down? The opposite ofpressed
.
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 :: Object :: output_class_name
Display class name on stdout (debug only).mnit :: PointerEvent :: pointer_id
Unique identifier of this pointer among other active pointersmnit :: PointerEvent :: pressed
Is down? either going down or already down
# Pointer/touch event on iOS
class GamnitIOSPointerEvent
super PointerEvent
private var native: UIEvent
private var native_touch: UITouch
private var content_scale_factor: Float
redef fun x do return native_touch.x * content_scale_factor
redef fun y do return native_touch.y * content_scale_factor
redef var pressed
redef var is_move
redef var pointer_id = native_touch.to_i is lazy
end
lib/gamnit/input_ios.nit:22,1--41,3