InputState

indigo.shared.events.InputState
See theInputState companion object
final class InputState(val mouse: Mouse, val keyboard: Keyboard, val gamepad: Gamepad, val pointers: Pointers)

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

Value parameters

gamepad

Current state of the gamepad

keyboard

Current state of the keyboard

mouse

Current state of the mouse

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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.

Attributes

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.

Attributes

Concrete fields

val mouse: Mouse