Property definitions

mnit $ PointerEvent :: defaultinit
# 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