eu.joaocosta.minart.input

Members list

Type members

Classlikes

final case class KeyboardInput(keysDown: Set[Key], events: Queue[Event])

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

events

ordered press/release keyboard events. Note that only the most recent KeyboardInput.maxEvents are guaranteed to be present.

keysDown

keys that are pressed down

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object KeyboardInput

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
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.

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type