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 - input/Keyboard.js, line 601
Members
-
<static> A
-
- Source - input/Keyboard.js, line 603
-
<static> ALT
-
- Source - input/Keyboard.js, line 771
-
<static> B
-
- Source - input/Keyboard.js, line 605
-
<static> BACKSPACE
-
- Source - input/Keyboard.js, line 759
-
<static> BACKWARD_SLASH
-
- Source - input/Keyboard.js, line 753
-
<static> C
-
- Source - input/Keyboard.js, line 607
-
<static> CAPS_LOCK
-
- Source - input/Keyboard.js, line 773
-
<static> CLEAR
-
- Source - input/Keyboard.js, line 763
-
<static> CLOSED_BRACKET
-
- Source - input/Keyboard.js, line 755
-
<static> COLON
-
- Source - input/Keyboard.js, line 737
-
<static> COMMA
-
- Source - input/Keyboard.js, line 741
-
<static> CONTROL
-
- Source - input/Keyboard.js, line 769
-
<static> D
-
- Source - input/Keyboard.js, line 609
-
<static> DELETE
-
- Source - input/Keyboard.js, line 801
-
<static> DOWN
-
- Source - input/Keyboard.js, line 793
-
<static> E
-
- Source - input/Keyboard.js, line 611
-
<static> EIGHT
-
- Source - input/Keyboard.js, line 671
-
<static> END
-
- Source - input/Keyboard.js, line 783
-
<static> ENTER
-
- Source - input/Keyboard.js, line 765
-
<static> EQUALS
-
- Source - input/Keyboard.js, line 739
-
<static> ESC
-
- Source - input/Keyboard.js, line 775
-
<static> F
-
- Source - input/Keyboard.js, line 613
-
<static> F1
-
- Source - input/Keyboard.js, line 707
-
<static> F2
-
- Source - input/Keyboard.js, line 709
-
<static> F3
-
- Source - input/Keyboard.js, line 711
-
<static> F4
-
- Source - input/Keyboard.js, line 713
-
<static> F5
-
- Source - input/Keyboard.js, line 715
-
<static> F6
-
- Source - input/Keyboard.js, line 717
-
<static> F7
-
- Source - input/Keyboard.js, line 719
-
<static> F8
-
- Source - input/Keyboard.js, line 721
-
<static> F9
-
- Source - input/Keyboard.js, line 723
-
<static> F10
-
- Source - input/Keyboard.js, line 725
-
<static> F11
-
- Source - input/Keyboard.js, line 727
-
<static> F12
-
- Source - input/Keyboard.js, line 729
-
<static> F13
-
- Source - input/Keyboard.js, line 731
-
<static> F14
-
- Source - input/Keyboard.js, line 733
-
<static> F15
-
- Source - input/Keyboard.js, line 735
-
<static> FIVE
-
- Source - input/Keyboard.js, line 665
-
<static> FOUR
-
- Source - input/Keyboard.js, line 663
-
<static> G
-
- Source - input/Keyboard.js, line 615
-
<static> H
-
- Source - input/Keyboard.js, line 617
-
<static> HELP
-
- Source - input/Keyboard.js, line 803
-
<static> HOME
-
- Source - input/Keyboard.js, line 785
-
<static> I
-
- Source - input/Keyboard.js, line 619
-
<static> INSERT
-
- Source - input/Keyboard.js, line 799
-
<static> J
-
- Source - input/Keyboard.js, line 621
-
<static> K
-
- Source - input/Keyboard.js, line 623
-
<static> L
-
- Source - input/Keyboard.js, line 625
-
<static> LEFT
-
- Source - input/Keyboard.js, line 787
-
<static> M
-
- Source - input/Keyboard.js, line 627
-
<static> MINUS
-
- Source - input/Keyboard.js, line 797
-
<static> N
-
- Source - input/Keyboard.js, line 629
-
<static> NINE
-
- Source - input/Keyboard.js, line 673
-
<static> NUM_LOCK
-
- Source - input/Keyboard.js, line 805
-
<static> NUMPAD_0
-
- Source - input/Keyboard.js, line 675
-
<static> NUMPAD_1
-
- Source - input/Keyboard.js, line 677
-
<static> NUMPAD_2
-
- Source - input/Keyboard.js, line 679
-
<static> NUMPAD_3
-
- Source - input/Keyboard.js, line 681
-
<static> NUMPAD_4
-
- Source - input/Keyboard.js, line 683
-
<static> NUMPAD_5
-
- Source - input/Keyboard.js, line 685
-
<static> NUMPAD_6
-
- Source - input/Keyboard.js, line 687
-
<static> NUMPAD_7
-
- Source - input/Keyboard.js, line 689
-
<static> NUMPAD_8
-
- Source - input/Keyboard.js, line 691
-
<static> NUMPAD_9
-
- Source - input/Keyboard.js, line 693
-
<static> NUMPAD_ADD
-
- Source - input/Keyboard.js, line 697
-
<static> NUMPAD_DECIMAL
-
- Source - input/Keyboard.js, line 703
-
<static> NUMPAD_DIVIDE
-
- Source - input/Keyboard.js, line 705
-
<static> NUMPAD_ENTER
-
- Source - input/Keyboard.js, line 699
-
<static> NUMPAD_MULTIPLY
-
- Source - input/Keyboard.js, line 695
-
<static> NUMPAD_SUBTRACT
-
- Source - input/Keyboard.js, line 701
-
<static> O
-
- Source - input/Keyboard.js, line 631
-
<static> ONE
-
- Source - input/Keyboard.js, line 657
-
<static> OPEN_BRACKET
-
- Source - input/Keyboard.js, line 751
-
<static> P
-
- Source - input/Keyboard.js, line 633
-
<static> PAGE_DOWN
-
- Source - input/Keyboard.js, line 781
-
<static> PAGE_UP
-
- Source - input/Keyboard.js, line 779
-
<static> PERIOD
-
- Source - input/Keyboard.js, line 745
-
<static> PLUS
-
- Source - input/Keyboard.js, line 795
-
<static> Q
-
- Source - input/Keyboard.js, line 635
-
<static> QUESTION_MARK
-
- Source - input/Keyboard.js, line 747
-
<static> QUOTES
-
- Source - input/Keyboard.js, line 757
-
<static> R
-
- Source - input/Keyboard.js, line 637
-
<static> RIGHT
-
- Source - input/Keyboard.js, line 791
-
<static> S
-
- Source - input/Keyboard.js, line 639
-
<static> SEVEN
-
- Source - input/Keyboard.js, line 669
-
<static> SHIFT
-
- Source - input/Keyboard.js, line 767
-
<static> SIX
-
- Source - input/Keyboard.js, line 667
-
<static> SPACEBAR
-
- Source - input/Keyboard.js, line 777
-
<static> T
-
- Source - input/Keyboard.js, line 641
-
<static> TAB
-
- Source - input/Keyboard.js, line 761
-
<static> THREE
-
- Source - input/Keyboard.js, line 661
-
<static> TILDE
-
- Source - input/Keyboard.js, line 749
-
<static> TWO
-
- Source - input/Keyboard.js, line 659
-
<static> U
-
- Source - input/Keyboard.js, line 643
-
<static> UNDERSCORE
-
- Source - input/Keyboard.js, line 743
-
<static> UP
-
- Source - input/Keyboard.js, line 789
-
<static> V
-
- Source - input/Keyboard.js, line 645
-
<static> W
-
- Source - input/Keyboard.js, line 647
-
<static> X
-
- Source - input/Keyboard.js, line 649
-
<static> Y
-
- Source - input/Keyboard.js, line 651
-
<static> Z
-
- Source - input/Keyboard.js, line 653
-
<static> ZERO
-
- Source - input/Keyboard.js, line 655