You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/input/Key.js
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,12 @@ Phaser.Key = function (game, keycode) {
18
18
*/
19
19
this.game=game;
20
20
21
+
/**
22
+
* @property {boolean} enabled - An enabled key processes its update and dispatches events. You can toggle this at run-time to disable a key without deleting it.
23
+
* @default
24
+
*/
25
+
this.enabled=true;
26
+
21
27
/**
22
28
* @property {object} event - Stores the most recent DOM event.
0 commit comments