@@ -8,7 +8,6 @@ var Class = require('../utils/Class');
88var CONST = require ( './const' ) ;
99var EventEmitter = require ( 'eventemitter3' ) ;
1010var Gamepad = require ( './gamepad/GamepadManager' ) ;
11- var Keyboard = require ( './keyboard/KeyboardManager' ) ;
1211var Mouse = require ( './mouse/MouseManager' ) ;
1312var Pointer = require ( './Pointer' ) ;
1413var 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