mirror of
https://github.com/wassname/phaser.git
synced 2026-07-24 13:10:53 +08:00
DebugUtils converted, re-name spaced the Input classes and started on Camera culling.
This commit is contained in:
+100
-100
@@ -1,4 +1,4 @@
|
||||
Phaser.Input.Keyboard = function (game) {
|
||||
Phaser.Keyboard = function (game) {
|
||||
|
||||
this.game = game;
|
||||
this._keys = {};
|
||||
@@ -6,7 +6,7 @@ Phaser.Input.Keyboard = function (game) {
|
||||
|
||||
};
|
||||
|
||||
Phaser.Input.Keyboard.prototype = {
|
||||
Phaser.Keyboard.prototype = {
|
||||
|
||||
game: null,
|
||||
|
||||
@@ -206,101 +206,101 @@ Phaser.Input.Keyboard.prototype = {
|
||||
|
||||
// Statics
|
||||
|
||||
Phaser.Input.Keyboard.A = "A".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.B = "B".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.C = "C".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.D = "D".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.E = "E".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.F = "F".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.G = "G".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.H = "H".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.I = "I".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.J = "J".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.K = "K".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.L = "L".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.M = "M".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.N = "N".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.O = "O".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.P = "P".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.Q = "Q".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.R = "R".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.S = "S".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.T = "T".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.U = "U".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.V = "V".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.W = "W".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.X = "X".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.Y = "Y".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.Z = "Z".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.ZERO = "0".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.ONE = "1".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.TWO = "2".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.THREE = "3".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.FOUR = "4".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.FIVE = "5".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.SIX = "6".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.SEVEN = "7".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.EIGHT = "8".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.NINE = "9".charCodeAt(0);
|
||||
Phaser.Input.Keyboard.NUMPAD_0 = 96;
|
||||
Phaser.Input.Keyboard.NUMPAD_1 = 97;
|
||||
Phaser.Input.Keyboard.NUMPAD_2 = 98;
|
||||
Phaser.Input.Keyboard.NUMPAD_3 = 99;
|
||||
Phaser.Input.Keyboard.NUMPAD_4 = 100;
|
||||
Phaser.Input.Keyboard.NUMPAD_5 = 101;
|
||||
Phaser.Input.Keyboard.NUMPAD_6 = 102;
|
||||
Phaser.Input.Keyboard.NUMPAD_7 = 103;
|
||||
Phaser.Input.Keyboard.NUMPAD_8 = 104;
|
||||
Phaser.Input.Keyboard.NUMPAD_9 = 105;
|
||||
Phaser.Input.Keyboard.NUMPAD_MULTIPLY = 106;
|
||||
Phaser.Input.Keyboard.NUMPAD_ADD = 107;
|
||||
Phaser.Input.Keyboard.NUMPAD_ENTER = 108;
|
||||
Phaser.Input.Keyboard.NUMPAD_SUBTRACT = 109;
|
||||
Phaser.Input.Keyboard.NUMPAD_DECIMAL = 110;
|
||||
Phaser.Input.Keyboard.NUMPAD_DIVIDE = 111;
|
||||
Phaser.Input.Keyboard.F1 = 112;
|
||||
Phaser.Input.Keyboard.F2 = 113;
|
||||
Phaser.Input.Keyboard.F3 = 114;
|
||||
Phaser.Input.Keyboard.F4 = 115;
|
||||
Phaser.Input.Keyboard.F5 = 116;
|
||||
Phaser.Input.Keyboard.F6 = 117;
|
||||
Phaser.Input.Keyboard.F7 = 118;
|
||||
Phaser.Input.Keyboard.F8 = 119;
|
||||
Phaser.Input.Keyboard.F9 = 120;
|
||||
Phaser.Input.Keyboard.F10 = 121;
|
||||
Phaser.Input.Keyboard.F11 = 122;
|
||||
Phaser.Input.Keyboard.F12 = 123;
|
||||
Phaser.Input.Keyboard.F13 = 124;
|
||||
Phaser.Input.Keyboard.F14 = 125;
|
||||
Phaser.Input.Keyboard.F15 = 126;
|
||||
Phaser.Input.Keyboard.COLON = 186;
|
||||
Phaser.Input.Keyboard.EQUALS = 187;
|
||||
Phaser.Input.Keyboard.UNDERSCORE = 189;
|
||||
Phaser.Input.Keyboard.QUESTION_MARK = 191;
|
||||
Phaser.Input.Keyboard.TILDE = 192;
|
||||
Phaser.Input.Keyboard.OPEN_BRACKET = 219;
|
||||
Phaser.Input.Keyboard.BACKWARD_SLASH = 220;
|
||||
Phaser.Input.Keyboard.CLOSED_BRACKET = 221;
|
||||
Phaser.Input.Keyboard.QUOTES = 222;
|
||||
Phaser.Input.Keyboard.BACKSPACE = 8;
|
||||
Phaser.Input.Keyboard.TAB = 9;
|
||||
Phaser.Input.Keyboard.CLEAR = 12;
|
||||
Phaser.Input.Keyboard.ENTER = 13;
|
||||
Phaser.Input.Keyboard.SHIFT = 16;
|
||||
Phaser.Input.Keyboard.CONTROL = 17;
|
||||
Phaser.Input.Keyboard.ALT = 18;
|
||||
Phaser.Input.Keyboard.CAPS_LOCK = 20;
|
||||
Phaser.Input.Keyboard.ESC = 27;
|
||||
Phaser.Input.Keyboard.SPACEBAR = 32;
|
||||
Phaser.Input.Keyboard.PAGE_UP = 33;
|
||||
Phaser.Input.Keyboard.PAGE_DOWN = 34;
|
||||
Phaser.Input.Keyboard.END = 35;
|
||||
Phaser.Input.Keyboard.HOME = 36;
|
||||
Phaser.Input.Keyboard.LEFT = 37;
|
||||
Phaser.Input.Keyboard.UP = 38;
|
||||
Phaser.Input.Keyboard.RIGHT = 39;
|
||||
Phaser.Input.Keyboard.DOWN = 40;
|
||||
Phaser.Input.Keyboard.INSERT = 45;
|
||||
Phaser.Input.Keyboard.DELETE = 46;
|
||||
Phaser.Input.Keyboard.HELP = 47;
|
||||
Phaser.Input.Keyboard.NUM_LOCK = 144;
|
||||
Phaser.Keyboard.A = "A".charCodeAt(0);
|
||||
Phaser.Keyboard.B = "B".charCodeAt(0);
|
||||
Phaser.Keyboard.C = "C".charCodeAt(0);
|
||||
Phaser.Keyboard.D = "D".charCodeAt(0);
|
||||
Phaser.Keyboard.E = "E".charCodeAt(0);
|
||||
Phaser.Keyboard.F = "F".charCodeAt(0);
|
||||
Phaser.Keyboard.G = "G".charCodeAt(0);
|
||||
Phaser.Keyboard.H = "H".charCodeAt(0);
|
||||
Phaser.Keyboard.I = "I".charCodeAt(0);
|
||||
Phaser.Keyboard.J = "J".charCodeAt(0);
|
||||
Phaser.Keyboard.K = "K".charCodeAt(0);
|
||||
Phaser.Keyboard.L = "L".charCodeAt(0);
|
||||
Phaser.Keyboard.M = "M".charCodeAt(0);
|
||||
Phaser.Keyboard.N = "N".charCodeAt(0);
|
||||
Phaser.Keyboard.O = "O".charCodeAt(0);
|
||||
Phaser.Keyboard.P = "P".charCodeAt(0);
|
||||
Phaser.Keyboard.Q = "Q".charCodeAt(0);
|
||||
Phaser.Keyboard.R = "R".charCodeAt(0);
|
||||
Phaser.Keyboard.S = "S".charCodeAt(0);
|
||||
Phaser.Keyboard.T = "T".charCodeAt(0);
|
||||
Phaser.Keyboard.U = "U".charCodeAt(0);
|
||||
Phaser.Keyboard.V = "V".charCodeAt(0);
|
||||
Phaser.Keyboard.W = "W".charCodeAt(0);
|
||||
Phaser.Keyboard.X = "X".charCodeAt(0);
|
||||
Phaser.Keyboard.Y = "Y".charCodeAt(0);
|
||||
Phaser.Keyboard.Z = "Z".charCodeAt(0);
|
||||
Phaser.Keyboard.ZERO = "0".charCodeAt(0);
|
||||
Phaser.Keyboard.ONE = "1".charCodeAt(0);
|
||||
Phaser.Keyboard.TWO = "2".charCodeAt(0);
|
||||
Phaser.Keyboard.THREE = "3".charCodeAt(0);
|
||||
Phaser.Keyboard.FOUR = "4".charCodeAt(0);
|
||||
Phaser.Keyboard.FIVE = "5".charCodeAt(0);
|
||||
Phaser.Keyboard.SIX = "6".charCodeAt(0);
|
||||
Phaser.Keyboard.SEVEN = "7".charCodeAt(0);
|
||||
Phaser.Keyboard.EIGHT = "8".charCodeAt(0);
|
||||
Phaser.Keyboard.NINE = "9".charCodeAt(0);
|
||||
Phaser.Keyboard.NUMPAD_0 = 96;
|
||||
Phaser.Keyboard.NUMPAD_1 = 97;
|
||||
Phaser.Keyboard.NUMPAD_2 = 98;
|
||||
Phaser.Keyboard.NUMPAD_3 = 99;
|
||||
Phaser.Keyboard.NUMPAD_4 = 100;
|
||||
Phaser.Keyboard.NUMPAD_5 = 101;
|
||||
Phaser.Keyboard.NUMPAD_6 = 102;
|
||||
Phaser.Keyboard.NUMPAD_7 = 103;
|
||||
Phaser.Keyboard.NUMPAD_8 = 104;
|
||||
Phaser.Keyboard.NUMPAD_9 = 105;
|
||||
Phaser.Keyboard.NUMPAD_MULTIPLY = 106;
|
||||
Phaser.Keyboard.NUMPAD_ADD = 107;
|
||||
Phaser.Keyboard.NUMPAD_ENTER = 108;
|
||||
Phaser.Keyboard.NUMPAD_SUBTRACT = 109;
|
||||
Phaser.Keyboard.NUMPAD_DECIMAL = 110;
|
||||
Phaser.Keyboard.NUMPAD_DIVIDE = 111;
|
||||
Phaser.Keyboard.F1 = 112;
|
||||
Phaser.Keyboard.F2 = 113;
|
||||
Phaser.Keyboard.F3 = 114;
|
||||
Phaser.Keyboard.F4 = 115;
|
||||
Phaser.Keyboard.F5 = 116;
|
||||
Phaser.Keyboard.F6 = 117;
|
||||
Phaser.Keyboard.F7 = 118;
|
||||
Phaser.Keyboard.F8 = 119;
|
||||
Phaser.Keyboard.F9 = 120;
|
||||
Phaser.Keyboard.F10 = 121;
|
||||
Phaser.Keyboard.F11 = 122;
|
||||
Phaser.Keyboard.F12 = 123;
|
||||
Phaser.Keyboard.F13 = 124;
|
||||
Phaser.Keyboard.F14 = 125;
|
||||
Phaser.Keyboard.F15 = 126;
|
||||
Phaser.Keyboard.COLON = 186;
|
||||
Phaser.Keyboard.EQUALS = 187;
|
||||
Phaser.Keyboard.UNDERSCORE = 189;
|
||||
Phaser.Keyboard.QUESTION_MARK = 191;
|
||||
Phaser.Keyboard.TILDE = 192;
|
||||
Phaser.Keyboard.OPEN_BRACKET = 219;
|
||||
Phaser.Keyboard.BACKWARD_SLASH = 220;
|
||||
Phaser.Keyboard.CLOSED_BRACKET = 221;
|
||||
Phaser.Keyboard.QUOTES = 222;
|
||||
Phaser.Keyboard.BACKSPACE = 8;
|
||||
Phaser.Keyboard.TAB = 9;
|
||||
Phaser.Keyboard.CLEAR = 12;
|
||||
Phaser.Keyboard.ENTER = 13;
|
||||
Phaser.Keyboard.SHIFT = 16;
|
||||
Phaser.Keyboard.CONTROL = 17;
|
||||
Phaser.Keyboard.ALT = 18;
|
||||
Phaser.Keyboard.CAPS_LOCK = 20;
|
||||
Phaser.Keyboard.ESC = 27;
|
||||
Phaser.Keyboard.SPACEBAR = 32;
|
||||
Phaser.Keyboard.PAGE_UP = 33;
|
||||
Phaser.Keyboard.PAGE_DOWN = 34;
|
||||
Phaser.Keyboard.END = 35;
|
||||
Phaser.Keyboard.HOME = 36;
|
||||
Phaser.Keyboard.LEFT = 37;
|
||||
Phaser.Keyboard.UP = 38;
|
||||
Phaser.Keyboard.RIGHT = 39;
|
||||
Phaser.Keyboard.DOWN = 40;
|
||||
Phaser.Keyboard.INSERT = 45;
|
||||
Phaser.Keyboard.DELETE = 46;
|
||||
Phaser.Keyboard.HELP = 47;
|
||||
Phaser.Keyboard.NUM_LOCK = 144;
|
||||
|
||||
Reference in New Issue
Block a user