Class: Phaser.KeyCode
Constructor
new KeyCode()
A key code represents a physical key on a keyboard.
The KeyCode class contains commonly supported keyboard key codes which can be used
as keycode`-parameters in several Phaser.Keyboard and Phaser.Key methods.
Note: These values should only be used indirectly, eg. as Phaser.KeyCode.KEY
.
Future versions may replace the actual values, such that they remain compatible with keycode
-parameters.
The current implementation maps to the KeyboardEvent.keyCode property.
Note: Use Phaser.KeyCode.KEY
instead of Phaser.Keyboard.KEY
to refer to a key code;
the latter approach is supported for compatibility.
- Source code: input/Keyboard.js (Line 609)
Public Properties
- Source code: input/Keyboard.js (Line 611)
- Source code: input/Keyboard.js (Line 779)
- Source code: input/Keyboard.js (Line 613)
- Source code: input/Keyboard.js (Line 767)
- Source code: input/Keyboard.js (Line 761)
- Source code: input/Keyboard.js (Line 615)
- Source code: input/Keyboard.js (Line 781)
- Source code: input/Keyboard.js (Line 771)
- Source code: input/Keyboard.js (Line 763)
- Source code: input/Keyboard.js (Line 745)
- Source code: input/Keyboard.js (Line 749)
- Source code: input/Keyboard.js (Line 777)
- Source code: input/Keyboard.js (Line 617)
- Source code: input/Keyboard.js (Line 809)
- Source code: input/Keyboard.js (Line 801)
- Source code: input/Keyboard.js (Line 619)
- Source code: input/Keyboard.js (Line 679)
- Source code: input/Keyboard.js (Line 791)
- Source code: input/Keyboard.js (Line 773)
- Source code: input/Keyboard.js (Line 747)
- Source code: input/Keyboard.js (Line 783)
- Source code: input/Keyboard.js (Line 621)
- Source code: input/Keyboard.js (Line 715)
- Source code: input/Keyboard.js (Line 717)
- Source code: input/Keyboard.js (Line 719)
- Source code: input/Keyboard.js (Line 721)
- Source code: input/Keyboard.js (Line 723)
- Source code: input/Keyboard.js (Line 725)
- Source code: input/Keyboard.js (Line 727)
- Source code: input/Keyboard.js (Line 729)
- Source code: input/Keyboard.js (Line 731)
- Source code: input/Keyboard.js (Line 733)
- Source code: input/Keyboard.js (Line 735)
- Source code: input/Keyboard.js (Line 737)
- Source code: input/Keyboard.js (Line 739)
- Source code: input/Keyboard.js (Line 741)
- Source code: input/Keyboard.js (Line 743)
- Source code: input/Keyboard.js (Line 673)
- Source code: input/Keyboard.js (Line 671)
- Source code: input/Keyboard.js (Line 623)
- Source code: input/Keyboard.js (Line 625)
- Source code: input/Keyboard.js (Line 811)
- Source code: input/Keyboard.js (Line 793)
- Source code: input/Keyboard.js (Line 627)
- Source code: input/Keyboard.js (Line 807)
- Source code: input/Keyboard.js (Line 629)
- Source code: input/Keyboard.js (Line 631)
- Source code: input/Keyboard.js (Line 633)
- Source code: input/Keyboard.js (Line 795)
- Source code: input/Keyboard.js (Line 635)
- Source code: input/Keyboard.js (Line 805)
- Source code: input/Keyboard.js (Line 637)
- Source code: input/Keyboard.js (Line 681)
- Source code: input/Keyboard.js (Line 813)
- Source code: input/Keyboard.js (Line 683)
- Source code: input/Keyboard.js (Line 685)
- Source code: input/Keyboard.js (Line 687)
- Source code: input/Keyboard.js (Line 689)
- Source code: input/Keyboard.js (Line 691)
- Source code: input/Keyboard.js (Line 693)
- Source code: input/Keyboard.js (Line 695)
- Source code: input/Keyboard.js (Line 697)
- Source code: input/Keyboard.js (Line 699)
- Source code: input/Keyboard.js (Line 701)
- Source code: input/Keyboard.js (Line 705)
- Source code: input/Keyboard.js (Line 711)
- Source code: input/Keyboard.js (Line 713)
- Source code: input/Keyboard.js (Line 707)
- Source code: input/Keyboard.js (Line 703)
- Source code: input/Keyboard.js (Line 709)
- Source code: input/Keyboard.js (Line 639)
- Source code: input/Keyboard.js (Line 665)
- Source code: input/Keyboard.js (Line 759)
- Source code: input/Keyboard.js (Line 641)
- Source code: input/Keyboard.js (Line 789)
- Source code: input/Keyboard.js (Line 787)
- Source code: input/Keyboard.js (Line 753)
- Source code: input/Keyboard.js (Line 803)
- Source code: input/Keyboard.js (Line 643)
- Source code: input/Keyboard.js (Line 755)
- Source code: input/Keyboard.js (Line 765)
- Source code: input/Keyboard.js (Line 645)
- Source code: input/Keyboard.js (Line 799)
- Source code: input/Keyboard.js (Line 647)
- Source code: input/Keyboard.js (Line 677)
- Source code: input/Keyboard.js (Line 775)
- Source code: input/Keyboard.js (Line 675)
- Source code: input/Keyboard.js (Line 785)
- Source code: input/Keyboard.js (Line 649)
- Source code: input/Keyboard.js (Line 769)
- Source code: input/Keyboard.js (Line 669)
- Source code: input/Keyboard.js (Line 757)
- Source code: input/Keyboard.js (Line 667)
- Source code: input/Keyboard.js (Line 651)
- Source code: input/Keyboard.js (Line 751)
- Source code: input/Keyboard.js (Line 797)
- Source code: input/Keyboard.js (Line 653)
- Source code: input/Keyboard.js (Line 655)
- Source code: input/Keyboard.js (Line 657)
- Source code: input/Keyboard.js (Line 659)
- Source code: input/Keyboard.js (Line 661)
- Source code: input/Keyboard.js (Line 663)
<static> A
<static> ALT
<static> B
<static> BACKSPACE
<static> BACKWARD_SLASH
<static> C
<static> CAPS_LOCK
<static> CLEAR
<static> CLOSED_BRACKET
<static> COLON
<static> COMMA
<static> CONTROL
<static> D
<static> DELETE
<static> DOWN
<static> E
<static> EIGHT
<static> END
<static> ENTER
<static> EQUALS
<static> ESC
<static> F
<static> F1
<static> F2
<static> F3
<static> F4
<static> F5
<static> F6
<static> F7
<static> F8
<static> F9
<static> F10
<static> F11
<static> F12
<static> F13
<static> F14
<static> F15
<static> FIVE
<static> FOUR
<static> G
<static> H
<static> HELP
<static> HOME
<static> I
<static> INSERT
<static> J
<static> K
<static> L
<static> LEFT
<static> M
<static> MINUS
<static> N
<static> NINE
<static> NUM_LOCK
<static> NUMPAD_0
<static> NUMPAD_1
<static> NUMPAD_2
<static> NUMPAD_3
<static> NUMPAD_4
<static> NUMPAD_5
<static> NUMPAD_6
<static> NUMPAD_7
<static> NUMPAD_8
<static> NUMPAD_9
<static> NUMPAD_ADD
<static> NUMPAD_DECIMAL
<static> NUMPAD_DIVIDE
<static> NUMPAD_ENTER
<static> NUMPAD_MULTIPLY
<static> NUMPAD_SUBTRACT
<static> O
<static> ONE
<static> OPEN_BRACKET
<static> P
<static> PAGE_DOWN
<static> PAGE_UP
<static> PERIOD
<static> PLUS
<static> Q
<static> QUESTION_MARK
<static> QUOTES
<static> R
<static> RIGHT
<static> S
<static> SEVEN
<static> SHIFT
<static> SIX
<static> SPACEBAR
<static> T
<static> TAB
<static> THREE
<static> TILDE
<static> TWO
<static> U
<static> UNDERSCORE
<static> UP
<static> V
<static> W
<static> X
<static> Y
<static> Z
<static> ZERO
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.KeyCode.html