PointerInput

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Clears the pointsPressed and pointsReleased.

Clears the pointsPressed and pointsReleased.

Attributes

Check if the mouse button is currently pressed

Check if the mouse button is currently pressed

Attributes

Updates the pointer position.

Updates the pointer position.

Attributes

Returns a new state where the pointer has been pressed.

Returns a new state where the pointer has been pressed.

Attributes

Returns a new state where the pointer has been released.

Returns a new state where the pointer has been released.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

Points where the pointer was pressed

Points where the pointer was pressed

Attributes

Points where the pointer was released. A value is None if the release happened off-screen.

Points where the pointer was released. A value is None if the release happened off-screen.

Attributes