eu.joaocosta.minart.input

Type members

Classlikes

case class KeyboardInput(keysDown: Set[Key], keysPressed: Set[Key], keysReleased: Set[Key])

The keyboard input stores the state of the keyboard at a certain point in time. It also accumulates keys that have been pressed and released.

The keyboard input stores the state of the keyboard at a certain point in time. It also accumulates keys that have been pressed and released.

Value parameters:
keysDown

keys that are pressed down

keysPressed

keys that have been pressed

keysReleased

keys that have been released

Companion:
object
Companion:
class
case class PointerInput(position: Option[Position], pointsPressed: List[Position], pointsReleased: List[Position], isPressed: Boolean)

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.

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:
isPressed

true if the pointer is currently pressed

keysReleased

points where the pointer was released

pointsPressed

points where the pointer pressed

position

the current pointer position

Companion:
object
Companion:
class