Added rudimentary Gamepad controller code

This commit is contained in:
Jeena 2014-05-31 01:49:10 +02:00
parent 281cbdc3a4
commit ce0d0204ea
3 changed files with 90 additions and 2 deletions

View file

@ -50,6 +50,8 @@ function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, Nc, reque
this.animationRequestId = requestAnimFrame(this.update.bind(this));
if(this.me && this.me.playerController) this.me.playerController.update();
this.physicsEngine.update();
if(this.me) {