mnit :: PointerEvent
mnit :: PointerEvent :: defaultinit
mnit :: PointerEvent :: depressed
Is it not currently pressed down? The opposite ofpressed
.
mnit :: PointerEvent :: pointer_id
Unique identifier of this pointer among other active pointersmnit :: PointerEvent :: pressed
Is down? either going down or already downmnit $ PointerEvent :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
mnit :: PointerEvent :: defaultinit
core :: Object :: defaultinit
mnit :: InputEvent :: 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 :: 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
# Mouse and touch input events
interface PointerEvent
super InputEvent
# X position on screen (in pixels)
fun x: Float is abstract
# Y position on screen (in pixels)
fun y: Float is abstract
# Is down? either going down or already down
fun pressed: Bool is abstract
# Is it not currently pressed down? The opposite of `pressed`.
fun depressed: Bool do return not pressed
# 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
lib/mnit/input.nit:25,1--50,3