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 639

Members

<static> A

Source:
src/input/Keyboard.js line 641

<static> ALT

Source:
src/input/Keyboard.js line 809

<static> B

Source:
src/input/Keyboard.js line 643

<static> BACKSPACE

Source:
src/input/Keyboard.js line 797

<static> BACKWARD_SLASH

Source:
src/input/Keyboard.js line 791

<static> C

Source:
src/input/Keyboard.js line 645

<static> CAPS_LOCK

Source:
src/input/Keyboard.js line 811

<static> CLEAR

Source:
src/input/Keyboard.js line 801

<static> CLOSED_BRACKET

Source:
src/input/Keyboard.js line 793

<static> COLON

Source:
src/input/Keyboard.js line 775

<static> COMMA

Source:
src/input/Keyboard.js line 779

<static> CONTROL

Source:
src/input/Keyboard.js line 807

<static> D

Source:
src/input/Keyboard.js line 647

<static> DELETE

Source:
src/input/Keyboard.js line 839

<static> DOWN

Source:
src/input/Keyboard.js line 831

<static> E

Source:
src/input/Keyboard.js line 649

<static> EIGHT

Source:
src/input/Keyboard.js line 709

<static> END

Source:
src/input/Keyboard.js line 821

<static> ENTER

Source:
src/input/Keyboard.js line 803

<static> EQUALS

Source:
src/input/Keyboard.js line 777

<static> ESC

Source:
src/input/Keyboard.js line 813

<static> F

Source:
src/input/Keyboard.js line 651

<static> F1

Source:
src/input/Keyboard.js line 745

<static> F2

Source:
src/input/Keyboard.js line 747

<static> F3

Source:
src/input/Keyboard.js line 749

<static> F4

Source:
src/input/Keyboard.js line 751

<static> F5

Source:
src/input/Keyboard.js line 753

<static> F6

Source:
src/input/Keyboard.js line 755

<static> F7

Source:
src/input/Keyboard.js line 757

<static> F8

Source:
src/input/Keyboard.js line 759

<static> F9

Source:
src/input/Keyboard.js line 761

<static> F10

Source:
src/input/Keyboard.js line 763

<static> F11

Source:
src/input/Keyboard.js line 765

<static> F12

Source:
src/input/Keyboard.js line 767

<static> F13

Source:
src/input/Keyboard.js line 769

<static> F14

Source:
src/input/Keyboard.js line 771

<static> F15

Source:
src/input/Keyboard.js line 773

<static> FIVE

Source:
src/input/Keyboard.js line 703

<static> FOUR

Source:
src/input/Keyboard.js line 701

<static> G

Source:
src/input/Keyboard.js line 653

<static> H

Source:
src/input/Keyboard.js line 655

<static> HELP

Source:
src/input/Keyboard.js line 841

<static> HOME

Source:
src/input/Keyboard.js line 823

<static> I

Source:
src/input/Keyboard.js line 657

<static> INSERT

Source:
src/input/Keyboard.js line 837

<static> J

Source:
src/input/Keyboard.js line 659

<static> K

Source:
src/input/Keyboard.js line 661

<static> L

Source:
src/input/Keyboard.js line 663

<static> LEFT

Source:
src/input/Keyboard.js line 825

<static> M

Source:
src/input/Keyboard.js line 665

<static> MINUS

Source:
src/input/Keyboard.js line 835

<static> N

Source:
src/input/Keyboard.js line 667

<static> NINE

Source:
src/input/Keyboard.js line 711

<static> NUM_LOCK

Source:
src/input/Keyboard.js line 843

<static> NUMPAD_0

Source:
src/input/Keyboard.js line 713

<static> NUMPAD_1

Source:
src/input/Keyboard.js line 715

<static> NUMPAD_2

Source:
src/input/Keyboard.js line 717

<static> NUMPAD_3

Source:
src/input/Keyboard.js line 719

<static> NUMPAD_4

Source:
src/input/Keyboard.js line 721

<static> NUMPAD_5

Source:
src/input/Keyboard.js line 723

<static> NUMPAD_6

Source:
src/input/Keyboard.js line 725

<static> NUMPAD_7

Source:
src/input/Keyboard.js line 727

<static> NUMPAD_8

Source:
src/input/Keyboard.js line 729

<static> NUMPAD_9

Source:
src/input/Keyboard.js line 731

<static> NUMPAD_ADD

Source:
src/input/Keyboard.js line 735

<static> NUMPAD_DECIMAL

Source:
src/input/Keyboard.js line 741

<static> NUMPAD_DIVIDE

Source:
src/input/Keyboard.js line 743

<static> NUMPAD_ENTER

Source:
src/input/Keyboard.js line 737

<static> NUMPAD_MULTIPLY

Source:
src/input/Keyboard.js line 733

<static> NUMPAD_SUBTRACT

Source:
src/input/Keyboard.js line 739

<static> O

Source:
src/input/Keyboard.js line 669

<static> ONE

Source:
src/input/Keyboard.js line 695

<static> OPEN_BRACKET

Source:
src/input/Keyboard.js line 789

<static> P

Source:
src/input/Keyboard.js line 671

<static> PAGE_DOWN

Source:
src/input/Keyboard.js line 819

<static> PAGE_UP

Source:
src/input/Keyboard.js line 817

<static> PERIOD

Source:
src/input/Keyboard.js line 783

<static> PLUS

Source:
src/input/Keyboard.js line 833

<static> Q

Source:
src/input/Keyboard.js line 673

<static> QUESTION_MARK

Source:
src/input/Keyboard.js line 785

<static> QUOTES

Source:
src/input/Keyboard.js line 795

<static> R

Source:
src/input/Keyboard.js line 675

<static> RIGHT

Source:
src/input/Keyboard.js line 829

<static> S

Source:
src/input/Keyboard.js line 677

<static> SEVEN

Source:
src/input/Keyboard.js line 707

<static> SHIFT

Source:
src/input/Keyboard.js line 805

<static> SIX

Source:
src/input/Keyboard.js line 705

<static> SPACEBAR

Source:
src/input/Keyboard.js line 815

<static> T

Source:
src/input/Keyboard.js line 679

<static> TAB

Source:
src/input/Keyboard.js line 799

<static> THREE

Source:
src/input/Keyboard.js line 699

<static> TILDE

Source:
src/input/Keyboard.js line 787

<static> TWO

Source:
src/input/Keyboard.js line 697

<static> U

Source:
src/input/Keyboard.js line 681

<static> UNDERSCORE

Source:
src/input/Keyboard.js line 781

<static> UP

Source:
src/input/Keyboard.js line 827

<static> V

Source:
src/input/Keyboard.js line 683

<static> W

Source:
src/input/Keyboard.js line 685

<static> X

Source:
src/input/Keyboard.js line 687

<static> Y

Source:
src/input/Keyboard.js line 689

<static> Z

Source:
src/input/Keyboard.js line 691

<static> ZERO

Source:
src/input/Keyboard.js line 693

phaser-ce@2.8.8 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2017-09-25 using Tomorrow.