Input

Undocumented in source.

Members

Static functions

getKeyFor
Key getKeyFor(string name)

Gets the key attached to a keybinding

isDown
bool isDown(string name)

Whether a user pressed the specified binding button

isPressed
bool isPressed(string name)

Whether a user pressed the specified binding button

isUp
bool isUp(string name)

Whether a user pressed the specified binding button

loadBindings
void loadBindings(Key[string] bindings)

Load keybindings from a list of bindings

registerKey
void registerKey(string name, Key binding)

Register a key and a default binding for a keybinding

update
void update()

Updates the keybinding states

wasPressed
bool wasPressed(string name)

Whether a user pressed the specified binding button the last frame

Meta