Class: KeyCode

Phaser. KeyCode

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 681

Members

<static> A

Source:
src/input/Keyboard.js line 683

<static> ALT

Source:
src/input/Keyboard.js line 935

<static> B

Source:
src/input/Keyboard.js line 686

<static> BACKSPACE

Source:
src/input/Keyboard.js line 917

<static> BACKWARD_SLASH

Source:
src/input/Keyboard.js line 908

<static> C

Source:
src/input/Keyboard.js line 689

<static> CAPS_LOCK

Source:
src/input/Keyboard.js line 938

<static> CLEAR

Source:
src/input/Keyboard.js line 923

<static> CLOSED_BRACKET

Source:
src/input/Keyboard.js line 911

<static> COLON

Source:
src/input/Keyboard.js line 884

<static> COMMA

Source:
src/input/Keyboard.js line 890

<static> CONTROL

Source:
src/input/Keyboard.js line 932

<static> D

Source:
src/input/Keyboard.js line 692

<static> DELETE

Source:
src/input/Keyboard.js line 980

<static> DOWN

Source:
src/input/Keyboard.js line 968

<static> E

Source:
src/input/Keyboard.js line 695

<static> EIGHT

Source:
src/input/Keyboard.js line 785

<static> END

Source:
src/input/Keyboard.js line 953

<static> ENTER

Source:
src/input/Keyboard.js line 926

<static> EQUALS

Source:
src/input/Keyboard.js line 887

<static> ESC

Source:
src/input/Keyboard.js line 941

<static> F

Source:
src/input/Keyboard.js line 698

<static> F1

Source:
src/input/Keyboard.js line 839

<static> F2

Source:
src/input/Keyboard.js line 842

<static> F3

Source:
src/input/Keyboard.js line 845

<static> F4

Source:
src/input/Keyboard.js line 848

<static> F5

Source:
src/input/Keyboard.js line 851

<static> F6

Source:
src/input/Keyboard.js line 854

<static> F7

Source:
src/input/Keyboard.js line 857

<static> F8

Source:
src/input/Keyboard.js line 860

<static> F9

Source:
src/input/Keyboard.js line 863

<static> F10

Source:
src/input/Keyboard.js line 866

<static> F11

Source:
src/input/Keyboard.js line 869

<static> F12

Source:
src/input/Keyboard.js line 872

<static> F13

Source:
src/input/Keyboard.js line 875

<static> F14

Source:
src/input/Keyboard.js line 878

<static> F15

Source:
src/input/Keyboard.js line 881

<static> FIVE

Source:
src/input/Keyboard.js line 776

<static> FOUR

Source:
src/input/Keyboard.js line 773

<static> G

Source:
src/input/Keyboard.js line 701

<static> H

Source:
src/input/Keyboard.js line 704

<static> HELP

Source:
src/input/Keyboard.js line 983

<static> HOME

Source:
src/input/Keyboard.js line 956

<static> I

Source:
src/input/Keyboard.js line 707

<static> INSERT

Source:
src/input/Keyboard.js line 977

<static> J

Source:
src/input/Keyboard.js line 710

<static> K

Source:
src/input/Keyboard.js line 713

<static> L

Source:
src/input/Keyboard.js line 716

<static> LEFT

Source:
src/input/Keyboard.js line 959

<static> M

Source:
src/input/Keyboard.js line 719

<static> MINUS

Source:
src/input/Keyboard.js line 974

<static> N

Source:
src/input/Keyboard.js line 722

<static> NINE

Source:
src/input/Keyboard.js line 788

<static> NUM_LOCK

Source:
src/input/Keyboard.js line 986

<static> NUMPAD_0

Source:
src/input/Keyboard.js line 791

<static> NUMPAD_1

Source:
src/input/Keyboard.js line 794

<static> NUMPAD_2

Source:
src/input/Keyboard.js line 797

<static> NUMPAD_3

Source:
src/input/Keyboard.js line 800

<static> NUMPAD_4

Source:
src/input/Keyboard.js line 803

<static> NUMPAD_5

Source:
src/input/Keyboard.js line 806

<static> NUMPAD_6

Source:
src/input/Keyboard.js line 809

<static> NUMPAD_7

Source:
src/input/Keyboard.js line 812

<static> NUMPAD_8

Source:
src/input/Keyboard.js line 815

<static> NUMPAD_9

Source:
src/input/Keyboard.js line 818

<static> NUMPAD_ADD

Source:
src/input/Keyboard.js line 824

<static> NUMPAD_DECIMAL

Source:
src/input/Keyboard.js line 833

<static> NUMPAD_DIVIDE

Source:
src/input/Keyboard.js line 836

<static> NUMPAD_ENTER

Source:
src/input/Keyboard.js line 827

<static> NUMPAD_MULTIPLY

Source:
src/input/Keyboard.js line 821

<static> NUMPAD_SUBTRACT

Source:
src/input/Keyboard.js line 830

<static> O

Source:
src/input/Keyboard.js line 725

<static> ONE

Source:
src/input/Keyboard.js line 764

<static> OPEN_BRACKET

Source:
src/input/Keyboard.js line 905

<static> P

Source:
src/input/Keyboard.js line 728

<static> PAGE_DOWN

Source:
src/input/Keyboard.js line 950

<static> PAGE_UP

Source:
src/input/Keyboard.js line 947

<static> PERIOD

Source:
src/input/Keyboard.js line 896

<static> PLUS

Source:
src/input/Keyboard.js line 971

<static> Q

Source:
src/input/Keyboard.js line 731

<static> QUESTION_MARK

Source:
src/input/Keyboard.js line 899

<static> QUOTES

Source:
src/input/Keyboard.js line 914

<static> R

Source:
src/input/Keyboard.js line 734

<static> RIGHT

Source:
src/input/Keyboard.js line 965

<static> S

Source:
src/input/Keyboard.js line 737

<static> SEVEN

Source:
src/input/Keyboard.js line 782

<static> SHIFT

Source:
src/input/Keyboard.js line 929

<static> SIX

Source:
src/input/Keyboard.js line 779

<static> SPACEBAR

Source:
src/input/Keyboard.js line 944

<static> T

Source:
src/input/Keyboard.js line 740

<static> TAB

Source:
src/input/Keyboard.js line 920

<static> THREE

Source:
src/input/Keyboard.js line 770

<static> TILDE

Source:
src/input/Keyboard.js line 902

<static> TWO

Source:
src/input/Keyboard.js line 767

<static> U

Source:
src/input/Keyboard.js line 743

<static> UNDERSCORE

Source:
src/input/Keyboard.js line 893

<static> UP

Source:
src/input/Keyboard.js line 962

<static> V

Source:
src/input/Keyboard.js line 746

<static> W

Source:
src/input/Keyboard.js line 749

<static> X

Source:
src/input/Keyboard.js line 752

<static> Y

Source:
src/input/Keyboard.js line 755

<static> Z

Source:
src/input/Keyboard.js line 758

<static> ZERO

Source:
src/input/Keyboard.js line 761

phaser-ce@2.10.6 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2018-06-01 using Tomorrow.