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:
- src/input/Keyboard.js line 646
Members
-
<static> A
-
- Source:
- src/input/Keyboard.js line 648
-
<static> ALT
-
- Source:
- src/input/Keyboard.js line 900
-
<static> B
-
- Source:
- src/input/Keyboard.js line 651
-
<static> BACKSPACE
-
- Source:
- src/input/Keyboard.js line 882
-
<static> BACKWARD_SLASH
-
- Source:
- src/input/Keyboard.js line 873
-
<static> C
-
- Source:
- src/input/Keyboard.js line 654
-
<static> CAPS_LOCK
-
- Source:
- src/input/Keyboard.js line 903
-
<static> CLEAR
-
- Source:
- src/input/Keyboard.js line 888
-
<static> CLOSED_BRACKET
-
- Source:
- src/input/Keyboard.js line 876
-
<static> COLON
-
- Source:
- src/input/Keyboard.js line 849
-
<static> COMMA
-
- Source:
- src/input/Keyboard.js line 855
-
<static> CONTROL
-
- Source:
- src/input/Keyboard.js line 897
-
<static> D
-
- Source:
- src/input/Keyboard.js line 657
-
<static> DELETE
-
- Source:
- src/input/Keyboard.js line 945
-
<static> DOWN
-
- Source:
- src/input/Keyboard.js line 933
-
<static> E
-
- Source:
- src/input/Keyboard.js line 660
-
<static> EIGHT
-
- Source:
- src/input/Keyboard.js line 750
-
<static> END
-
- Source:
- src/input/Keyboard.js line 918
-
<static> ENTER
-
- Source:
- src/input/Keyboard.js line 891
-
<static> EQUALS
-
- Source:
- src/input/Keyboard.js line 852
-
<static> ESC
-
- Source:
- src/input/Keyboard.js line 906
-
<static> F
-
- Source:
- src/input/Keyboard.js line 663
-
<static> F1
-
- Source:
- src/input/Keyboard.js line 804
-
<static> F2
-
- Source:
- src/input/Keyboard.js line 807
-
<static> F3
-
- Source:
- src/input/Keyboard.js line 810
-
<static> F4
-
- Source:
- src/input/Keyboard.js line 813
-
<static> F5
-
- Source:
- src/input/Keyboard.js line 816
-
<static> F6
-
- Source:
- src/input/Keyboard.js line 819
-
<static> F7
-
- Source:
- src/input/Keyboard.js line 822
-
<static> F8
-
- Source:
- src/input/Keyboard.js line 825
-
<static> F9
-
- Source:
- src/input/Keyboard.js line 828
-
<static> F10
-
- Source:
- src/input/Keyboard.js line 831
-
<static> F11
-
- Source:
- src/input/Keyboard.js line 834
-
<static> F12
-
- Source:
- src/input/Keyboard.js line 837
-
<static> F13
-
- Source:
- src/input/Keyboard.js line 840
-
<static> F14
-
- Source:
- src/input/Keyboard.js line 843
-
<static> F15
-
- Source:
- src/input/Keyboard.js line 846
-
<static> FIVE
-
- Source:
- src/input/Keyboard.js line 741
-
<static> FOUR
-
- Source:
- src/input/Keyboard.js line 738
-
<static> G
-
- Source:
- src/input/Keyboard.js line 666
-
<static> H
-
- Source:
- src/input/Keyboard.js line 669
-
<static> HELP
-
- Source:
- src/input/Keyboard.js line 948
-
<static> HOME
-
- Source:
- src/input/Keyboard.js line 921
-
<static> I
-
- Source:
- src/input/Keyboard.js line 672
-
<static> INSERT
-
- Source:
- src/input/Keyboard.js line 942
-
<static> J
-
- Source:
- src/input/Keyboard.js line 675
-
<static> K
-
- Source:
- src/input/Keyboard.js line 678
-
<static> L
-
- Source:
- src/input/Keyboard.js line 681
-
<static> LEFT
-
- Source:
- src/input/Keyboard.js line 924
-
<static> M
-
- Source:
- src/input/Keyboard.js line 684
-
<static> MINUS
-
- Source:
- src/input/Keyboard.js line 939
-
<static> N
-
- Source:
- src/input/Keyboard.js line 687
-
<static> NINE
-
- Source:
- src/input/Keyboard.js line 753
-
<static> NUM_LOCK
-
- Source:
- src/input/Keyboard.js line 951
-
<static> NUMPAD_0
-
- Source:
- src/input/Keyboard.js line 756
-
<static> NUMPAD_1
-
- Source:
- src/input/Keyboard.js line 759
-
<static> NUMPAD_2
-
- Source:
- src/input/Keyboard.js line 762
-
<static> NUMPAD_3
-
- Source:
- src/input/Keyboard.js line 765
-
<static> NUMPAD_4
-
- Source:
- src/input/Keyboard.js line 768
-
<static> NUMPAD_5
-
- Source:
- src/input/Keyboard.js line 771
-
<static> NUMPAD_6
-
- Source:
- src/input/Keyboard.js line 774
-
<static> NUMPAD_7
-
- Source:
- src/input/Keyboard.js line 777
-
<static> NUMPAD_8
-
- Source:
- src/input/Keyboard.js line 780
-
<static> NUMPAD_9
-
- Source:
- src/input/Keyboard.js line 783
-
<static> NUMPAD_ADD
-
- Source:
- src/input/Keyboard.js line 789
-
<static> NUMPAD_DECIMAL
-
- Source:
- src/input/Keyboard.js line 798
-
<static> NUMPAD_DIVIDE
-
- Source:
- src/input/Keyboard.js line 801
-
<static> NUMPAD_ENTER
-
- Source:
- src/input/Keyboard.js line 792
-
<static> NUMPAD_MULTIPLY
-
- Source:
- src/input/Keyboard.js line 786
-
<static> NUMPAD_SUBTRACT
-
- Source:
- src/input/Keyboard.js line 795
-
<static> O
-
- Source:
- src/input/Keyboard.js line 690
-
<static> ONE
-
- Source:
- src/input/Keyboard.js line 729
-
<static> OPEN_BRACKET
-
- Source:
- src/input/Keyboard.js line 870
-
<static> P
-
- Source:
- src/input/Keyboard.js line 693
-
<static> PAGE_DOWN
-
- Source:
- src/input/Keyboard.js line 915
-
<static> PAGE_UP
-
- Source:
- src/input/Keyboard.js line 912
-
<static> PERIOD
-
- Source:
- src/input/Keyboard.js line 861
-
<static> PLUS
-
- Source:
- src/input/Keyboard.js line 936
-
<static> Q
-
- Source:
- src/input/Keyboard.js line 696
-
<static> QUESTION_MARK
-
- Source:
- src/input/Keyboard.js line 864
-
<static> QUOTES
-
- Source:
- src/input/Keyboard.js line 879
-
<static> R
-
- Source:
- src/input/Keyboard.js line 699
-
<static> RIGHT
-
- Source:
- src/input/Keyboard.js line 930
-
<static> S
-
- Source:
- src/input/Keyboard.js line 702
-
<static> SEVEN
-
- Source:
- src/input/Keyboard.js line 747
-
<static> SHIFT
-
- Source:
- src/input/Keyboard.js line 894
-
<static> SIX
-
- Source:
- src/input/Keyboard.js line 744
-
<static> SPACEBAR
-
- Source:
- src/input/Keyboard.js line 909
-
<static> T
-
- Source:
- src/input/Keyboard.js line 705
-
<static> TAB
-
- Source:
- src/input/Keyboard.js line 885
-
<static> THREE
-
- Source:
- src/input/Keyboard.js line 735
-
<static> TILDE
-
- Source:
- src/input/Keyboard.js line 867
-
<static> TWO
-
- Source:
- src/input/Keyboard.js line 732
-
<static> U
-
- Source:
- src/input/Keyboard.js line 708
-
<static> UNDERSCORE
-
- Source:
- src/input/Keyboard.js line 858
-
<static> UP
-
- Source:
- src/input/Keyboard.js line 927
-
<static> V
-
- Source:
- src/input/Keyboard.js line 711
-
<static> W
-
- Source:
- src/input/Keyboard.js line 714
-
<static> X
-
- Source:
- src/input/Keyboard.js line 717
-
<static> Y
-
- Source:
- src/input/Keyboard.js line 720
-
<static> Z
-
- Source:
- src/input/Keyboard.js line 723
-
<static> ZERO
-
- Source:
- src/input/Keyboard.js line 726