InputState

final class InputState(val mouse: Mouse, val keyboard: Keyboard, val gamepad: Gamepad)

Holds a snapshot of the states of the various input types as they were entering this frame.

Value Params
gamepad

Current state of the gamepad

keyboard

Current state of the keyboard

mouse

Current state of the mouse

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def mapInputs[A](mappings: InputMapping[A], default: A): A

Given some input mappings, produce a guaranteed value A based on the current InputState.

Given some input mappings, produce a guaranteed value A based on the current InputState.

def mapInputsOption[A](mappings: InputMapping[A]): Option[A]

Given some input mappings, produce an optional value A based on the current InputState.

Given some input mappings, produce an optional value A based on the current InputState.

Concrete fields

val mouse: Mouse