Keyboard#pressEvent

pressEvent : Object The most recent DOM event from keypress. Source code: input/Keyboard.js (Line 43)

Keyboard#onUpCallback

onUpCallback : Function This callback is invoked every time a key is released. Source code: input/Keyboard.js (Line 63)

Keyboard#onPressCallback

onPressCallback : Function This callback is invoked every time a DOM onkeypress event is raised, which is only for printable keys. Source code: input/Keyboard.js (Line 58)

Keyboard#onDownCallback

onDownCallback : Function This callback is invoked every time a key is pressed down, including key repeats when a key is held down. Source code: input/Keyboard.js (Line 53)

Keyboard#lastKey

[readonly] lastKey : Phaser.Key Returns the most recently pressed Key. This is a Phaser.Key object and it changes every time a key is pressed. Source code: input/Keyboard.js (Line 576)

Keyboard#lastChar

[readonly] lastChar : string Returns the string value of the most recently pressed key. Source code: input/Keyboard.js (Line 553)

Keyboard#Keyboard

new Keyboard(game) The Keyboard class monitors keyboard input and dispatches keyboard events. Note: many keyboards are unable to process certain combinations of keys due to hardware limitations known as ghosting.See http://www.html5gamedevs.com/topic/4876-impossible-to-use-more-than-2-keyboard-input-buttons-at-the-same-time/ for more details. Also please be aware that certain browser extensions can disable or override Phaser keyboard handling.For example the Chrome extension vimium is known t

Keyboard#isDown()

isDown(keycode) → {boolean} Returns true of the key is currently pressed down. Note that it can only detect key presses on the web browser. Parameters Name Type Description keycode integer The keycode of the key to check: i.e. Phaser.KeyCode.UP or Phaser.KeyCode.SPACEBAR. Returns boolean - True if the key is currently down, false if not or null if the Key wasn't found. Source code: input/Keyboard.js (Line 531)

Keyboard#game

game : Phaser.Game Local reference to game. Source code: input/Keyboard.js (Line 26)

Keyboard#event

event : Object The most recent DOM event from keydown or keyup. This is updated every time a new key is pressed or released. Source code: input/Keyboard.js (Line 38)