new Keyboard(game) The Keyboard class monitors keyboard input and dispatches keyboard events. Note: many keyboards are
update() Updates all currently defined keys. Source code:
stop() Stops the Keyboard event listeners from running (keydown, keyup and keypress). They are removed from the window.
onUpCallback : Function This callback is invoked every time a key is released. Source
addCallbacks(context, onDown, onUp, onPress)
upDuration(keycode, duration) → {boolean} Returns true
removeKeyCapture(keycode) Removes an existing key capture. Parameters
isDown(keycode) → {boolean} Returns true of the key is currently pressed down. Note that it can
pressEvent : Object The most recent DOM event from keypress. Source code:
destroy() Stops the Keyboard event listeners from running (keydown and keyup). They are removed from the window.Also clears all
Page 1 of 3