Skip to content

Commit 8148b14

Browse files
committed
Removed references to the Gamepad
1 parent 680d34b commit 8148b14

2 files changed

Lines changed: 0 additions & 28 deletions

File tree

src/input/InputManager.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
var Class = require('../utils/Class');
88
var CONST = require('./const');
99
var EventEmitter = require('eventemitter3');
10-
var Gamepad = require('./gamepad/GamepadManager');
1110
var Mouse = require('./mouse/MouseManager');
1211
var Pointer = require('./Pointer');
1312
var Rectangle = require('../geom/rectangle/Rectangle');
@@ -159,15 +158,6 @@ var InputManager = new Class({
159158
*/
160159
this.touch = (config.inputTouch) ? new Touch(this) : null;
161160

162-
/**
163-
* A reference to the Gamepad Manager class, if enabled via the `input.gamepad` Game Config property.
164-
*
165-
* @name Phaser.Input.InputManager#gamepad
166-
* @type {Phaser.Input.Gamepad.GamepadManager}
167-
* @since 3.0.0
168-
*/
169-
this.gamepad = (config.inputGamepad) ? new Gamepad(this) : null;
170-
171161
/**
172162
* An array of Pointers that have been added to the game.
173163
* The first entry is reserved for the Mouse Pointer, the rest are Touch Pointers.
@@ -1224,11 +1214,6 @@ var InputManager = new Class({
12241214
this.touch.destroy();
12251215
}
12261216

1227-
if (this.gamepad)
1228-
{
1229-
this.gamepad.destroy();
1230-
}
1231-
12321217
for (var i = 0; i < this.pointers.length; i++)
12331218
{
12341219
this.pointers[i].destroy();

src/input/InputPlugin.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,6 @@ var InputPlugin = new Class({
152152
*/
153153
this.mouse = this.manager.mouse;
154154

155-
/**
156-
* A reference to the Gamepad Manager.
157-
*
158-
* This property is only set if Gamepad support has been enabled in your Game Configuration file.
159-
*
160-
* @name Phaser.Input.InputPlugin#gamepad
161-
* @type {?Phaser.Input.Gamepad.GamepadManager}
162-
* @since 3.0.0
163-
*/
164-
this.gamepad = this.manager.gamepad;
165-
166155
/**
167156
* When set to `true` (the default) the Input Plugin will emulate DOM behavior by only emitting events from
168157
* the top-most Game Objects in the Display List.
@@ -1953,9 +1942,7 @@ var InputPlugin = new Class({
19531942
this.cameras = null;
19541943
this.manager = null;
19551944
this.events = null;
1956-
this.keyboard = null;
19571945
this.mouse = null;
1958-
this.gamepad = null;
19591946
},
19601947

19611948
/**

0 commit comments

Comments
 (0)