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 695

Members

<static> A

Source:
src/input/Keyboard.js line 697

<static> ALT

Source:
src/input/Keyboard.js line 949

<static> B

Source:
src/input/Keyboard.js line 700

<static> BACKSPACE

Source:
src/input/Keyboard.js line 931

<static> BACKWARD_SLASH

Source:
src/input/Keyboard.js line 922

<static> C

Source:
src/input/Keyboard.js line 703

<static> CAPS_LOCK

Source:
src/input/Keyboard.js line 952

<static> CLEAR

Source:
src/input/Keyboard.js line 937

<static> CLOSED_BRACKET

Source:
src/input/Keyboard.js line 925

<static> COLON

Source:
src/input/Keyboard.js line 898

<static> COMMA

Source:
src/input/Keyboard.js line 904

<static> CONTROL

Source:
src/input/Keyboard.js line 946

<static> D

Source:
src/input/Keyboard.js line 706

<static> DELETE

Source:
src/input/Keyboard.js line 994

<static> DOWN

Source:
src/input/Keyboard.js line 982

<static> E

Source:
src/input/Keyboard.js line 709

<static> EIGHT

Source:
src/input/Keyboard.js line 799

<static> END

Source:
src/input/Keyboard.js line 967

<static> ENTER

Source:
src/input/Keyboard.js line 940

<static> EQUALS

Source:
src/input/Keyboard.js line 901

<static> ESC

Source:
src/input/Keyboard.js line 955

<static> F

Source:
src/input/Keyboard.js line 712

<static> F1

Source:
src/input/Keyboard.js line 853

<static> F2

Source:
src/input/Keyboard.js line 856

<static> F3

Source:
src/input/Keyboard.js line 859

<static> F4

Source:
src/input/Keyboard.js line 862

<static> F5

Source:
src/input/Keyboard.js line 865

<static> F6

Source:
src/input/Keyboard.js line 868

<static> F7

Source:
src/input/Keyboard.js line 871

<static> F8

Source:
src/input/Keyboard.js line 874

<static> F9

Source:
src/input/Keyboard.js line 877

<static> F10

Source:
src/input/Keyboard.js line 880

<static> F11

Source:
src/input/Keyboard.js line 883

<static> F12

Source:
src/input/Keyboard.js line 886

<static> F13

Source:
src/input/Keyboard.js line 889

<static> F14

Source:
src/input/Keyboard.js line 892

<static> F15

Source:
src/input/Keyboard.js line 895

<static> FIVE

Source:
src/input/Keyboard.js line 790

<static> FOUR

Source:
src/input/Keyboard.js line 787

<static> G

Source:
src/input/Keyboard.js line 715

<static> H

Source:
src/input/Keyboard.js line 718

<static> HELP

Source:
src/input/Keyboard.js line 997

<static> HOME

Source:
src/input/Keyboard.js line 970

<static> I

Source:
src/input/Keyboard.js line 721

<static> INSERT

Source:
src/input/Keyboard.js line 991

<static> J

Source:
src/input/Keyboard.js line 724

<static> K

Source:
src/input/Keyboard.js line 727

<static> L

Source:
src/input/Keyboard.js line 730

<static> LEFT

Source:
src/input/Keyboard.js line 973

<static> M

Source:
src/input/Keyboard.js line 733

<static> MINUS

Source:
src/input/Keyboard.js line 988

<static> N

Source:
src/input/Keyboard.js line 736

<static> NINE

Source:
src/input/Keyboard.js line 802

<static> NUM_LOCK

Source:
src/input/Keyboard.js line 1000

<static> NUMPAD_0

Source:
src/input/Keyboard.js line 805

<static> NUMPAD_1

Source:
src/input/Keyboard.js line 808

<static> NUMPAD_2

Source:
src/input/Keyboard.js line 811

<static> NUMPAD_3

Source:
src/input/Keyboard.js line 814

<static> NUMPAD_4

Source:
src/input/Keyboard.js line 817

<static> NUMPAD_5

Source:
src/input/Keyboard.js line 820

<static> NUMPAD_6

Source:
src/input/Keyboard.js line 823

<static> NUMPAD_7

Source:
src/input/Keyboard.js line 826

<static> NUMPAD_8

Source:
src/input/Keyboard.js line 829

<static> NUMPAD_9

Source:
src/input/Keyboard.js line 832

<static> NUMPAD_ADD

Source:
src/input/Keyboard.js line 838

<static> NUMPAD_DECIMAL

Source:
src/input/Keyboard.js line 847

<static> NUMPAD_DIVIDE

Source:
src/input/Keyboard.js line 850

<static> NUMPAD_ENTER

Source:
src/input/Keyboard.js line 841

<static> NUMPAD_MULTIPLY

Source:
src/input/Keyboard.js line 835

<static> NUMPAD_SUBTRACT

Source:
src/input/Keyboard.js line 844

<static> O

Source:
src/input/Keyboard.js line 739

<static> ONE

Source:
src/input/Keyboard.js line 778

<static> OPEN_BRACKET

Source:
src/input/Keyboard.js line 919

<static> P

Source:
src/input/Keyboard.js line 742

<static> PAGE_DOWN

Source:
src/input/Keyboard.js line 964

<static> PAGE_UP

Source:
src/input/Keyboard.js line 961

<static> PERIOD

Source:
src/input/Keyboard.js line 910

<static> PLUS

Source:
src/input/Keyboard.js line 985

<static> Q

Source:
src/input/Keyboard.js line 745

<static> QUESTION_MARK

Source:
src/input/Keyboard.js line 913

<static> QUOTES

Source:
src/input/Keyboard.js line 928

<static> R

Source:
src/input/Keyboard.js line 748

<static> RIGHT

Source:
src/input/Keyboard.js line 979

<static> S

Source:
src/input/Keyboard.js line 751

<static> SEVEN

Source:
src/input/Keyboard.js line 796

<static> SHIFT

Source:
src/input/Keyboard.js line 943

<static> SIX

Source:
src/input/Keyboard.js line 793

<static> SPACEBAR

Source:
src/input/Keyboard.js line 958

<static> T

Source:
src/input/Keyboard.js line 754

<static> TAB

Source:
src/input/Keyboard.js line 934

<static> THREE

Source:
src/input/Keyboard.js line 784

<static> TILDE

Source:
src/input/Keyboard.js line 916

<static> TWO

Source:
src/input/Keyboard.js line 781

<static> U

Source:
src/input/Keyboard.js line 757

<static> UNDERSCORE

Source:
src/input/Keyboard.js line 907

<static> UP

Source:
src/input/Keyboard.js line 976

<static> V

Source:
src/input/Keyboard.js line 760

<static> W

Source:
src/input/Keyboard.js line 763

<static> X

Source:
src/input/Keyboard.js line 766

<static> Y

Source:
src/input/Keyboard.js line 769

<static> Z

Source:
src/input/Keyboard.js line 772

<static> ZERO

Source:
src/input/Keyboard.js line 775

phaser-ce@2.11.0 is on GitHub and NPM

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