Skip to content

Commit fc0069d

Browse files
committed
Removed all references to keyboard
1 parent 43fd10b commit fc0069d

1 file changed

Lines changed: 4 additions & 17 deletions

File tree

src/input/InputManager.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var Class = require('../utils/Class');
88
var CONST = require('./const');
99
var EventEmitter = require('eventemitter3');
1010
var Gamepad = require('./gamepad/GamepadManager');
11-
var Keyboard = require('./keyboard/KeyboardManager');
1211
var Mouse = require('./mouse/MouseManager');
1312
var Pointer = require('./Pointer');
1413
var Rectangle = require('../geom/rectangle/Rectangle');
@@ -18,9 +17,11 @@ var TransformXY = require('../math/TransformXY');
1817

1918
/**
2019
* @classdesc
21-
* The Input Manager is responsible for handling all of the input related systems in a single Phaser Game instance.
20+
* The Input Manager is responsible for handling the pointer related systems in a single Phaser Game instance.
2221
*
23-
* Based on the Game Config it will create handlers for mouse, touch, keyboard and gamepad support.
22+
* Based on the Game Config it will create handlers for mouse and touch support.
23+
*
24+
* Keyboard and Gamepad are plugins, handled directly by the InputPlugin class.
2425
*
2526
* It then manages the event queue, pointer creation and general hit test related operations.
2627
*
@@ -140,15 +141,6 @@ var InputManager = new Class({
140141
*/
141142
this._hasMoveCallback = false;
142143

143-
/**
144-
* A reference to the Keyboard Manager class, if enabled via the `input.keyboard` Game Config property.
145-
*
146-
* @name Phaser.Input.InputManager#keyboard
147-
* @type {?Phaser.Input.Keyboard.KeyboardManager}
148-
* @since 3.0.0
149-
*/
150-
this.keyboard = (config.inputKeyboard) ? new Keyboard(this) : null;
151-
152144
/**
153145
* A reference to the Mouse Manager class, if enabled via the `input.mouse` Game Config property.
154146
*
@@ -1222,11 +1214,6 @@ var InputManager = new Class({
12221214
{
12231215
this.events.removeAllListeners();
12241216

1225-
if (this.keyboard)
1226-
{
1227-
this.keyboard.destroy();
1228-
}
1229-
12301217
if (this.mouse)
12311218
{
12321219
this.mouse.destroy();

0 commit comments

Comments
 (0)