mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Added rudimentary Gamepad controller code
This commit is contained in:
parent
281cbdc3a4
commit
ce0d0204ea
3 changed files with 90 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue