fixed double update problem on PlayerController

This commit is contained in:
Jeena 2014-05-31 02:11:13 +02:00
parent ce0d0204ea
commit 5f2be233ba
3 changed files with 3 additions and 5 deletions

View file

@ -1,11 +1,10 @@
define([
"Game/Client/Control/Input/XyInput",
"Game/Config/Settings",
"Lib/Utilities/NotificationCenter",
"Lib/Utilities/RequestAnimFrame"
"Lib/Utilities/NotificationCenter"
],
function (Parent, Settings, Nc, requestAnimFrame) {
function (Parent, Settings, Nc) {
function GamepadInput(playerController) {
this.playerController = playerController;

View file

@ -47,6 +47,7 @@ function (Parent, KeyboardInput, MouseInput, Nc, GamepadInput) {
PlayerController.prototype = Object.create(Parent.prototype);
PlayerController.prototype.update = function() {
Parent.prototype.update.call(this);
this.gamepadInput.update();
};