KeyboardInput

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.

Value parameters:
keysDown

keys that are pressed down

keysPressed

keys that have been pressed

keysReleased

keys that have been released

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Clears the keysPressed and keysReleased.

Clears the keysPressed and keysReleased.

def isDown(key: Key): Boolean

Checks if a key is down.

Checks if a key is down.

def isUp(key: Key): Boolean

Checks if a key is up.

Checks if a key is up.

Returns a new state where a key has been pressed.

Returns a new state where a key has been pressed.

Returns a new state where a key has been released.

Returns a new state where a key has been released.

Inherited methods

Inherited from:
Product