eu.joaocosta.minart.input.PointerInput
See thePointerInput companion object
final case class PointerInput(position: Option[Position], events: Queue[Event], pressedOn: Option[Position])
The pointer input stores the state of the mouse (or similar device) at a certain point in time. It also accumulates points that have been pressed and released.
Value parameters
- events
-
points where the pointer was pressed/released (the boolean indicates pressed when true, released when false). Note that only the most recent
PointerInput.maxEvents
are guaranteed to be present. - position
-
the current pointer position.
- pressedOn
-
if defined, it means the mouse is currently down and was pressed at that position. Otherwise, the mouse is currently up.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article