API Docs for:
Show:

KeyboardInput Class

A component class that holds key bindings for a given entity that translate key codes into actions.

Constructor

KeyboardInput

(
  • keyBindings
)

Parameters:

  • keyBindings Object

    An object containing the key bindings.

Item Index

Methods

getKeyBindings

() Object

Returns:

Object: Direct reference to the object containing the key bindings.

setKeyBindings

(
  • keyBindings
)

Parameters:

  • keyBindings Object

    An object containing the key bindings.