Skip to content

Commit ad49a01

Browse files
committed
Fixed rogue input reference and hitTest signature
1 parent a7bd948 commit ad49a01

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/gameobjects/GameObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ var GameObject = new Class({
226226
*/
227227
setInteractive: function (shape, callback)
228228
{
229-
this.scene.sys.inputManager.enable(this, shape, callback);
229+
this.scene.sys.input.enable(this, shape, callback);
230230

231231
return this;
232232
},
@@ -287,7 +287,7 @@ var GameObject = new Class({
287287

288288
if (this.input)
289289
{
290-
this.scene.sys.inputManager.clear(this);
290+
this.scene.sys.input.clear(this);
291291
this.input = undefined;
292292
}
293293

src/input/InputPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ var InputPlugin = new Class({
194194

195195
// Get a list of all objects that can be seen by the camera below the pointer in the scene and store in 'output' array.
196196
// All objects in this array are input enabled, as checked by the hitTest method, so we don't need to check later on as well.
197-
return this.manager.hitTest(this._list, pointer.x, pointer.y, camera);
197+
return this.manager.hitTest(pointer.x, pointer.y, this._list, camera);
198198
}
199199
else
200200
{

0 commit comments

Comments
 (0)