tgrvl Posted November 22, 2013 Share Posted November 22, 2013 Have there been any examples of games written in Phaser with support for the wireless xbox controller for PC? I'm quite interested to know if this is something I could implement in the future but I can't seem to find phaser and xbox controller mention in the same thread anywhere. EDIT: I've picked up this js library which enables the xbox to be used in the browser so I'll see what I can do with it. http://www.gamepadjs.com/ Link to comment Share on other sites More sharing options...
rich Posted November 22, 2013 Share Posted November 22, 2013 Just use the gamepad API, it's not xbox specific btw, pretty much any controller will work. Set-up your own listeners for the gamepad and then update sprites accordingly. Should be pretty straight forward, I will definitely add it natively one day Link to comment Share on other sites More sharing options...
DWboutin Posted December 23, 2013 Share Posted December 23, 2013 Is it possible to attach some controller events to trigger some native events of Phaser Framework? Just to code it with keyboard events and if a controller is connected, take the controller events to trigger the keyboard's one? Link to comment Share on other sites More sharing options...
rich Posted December 23, 2013 Share Posted December 23, 2013 Not really, keyboard events are very specific to the keyboard. We'll add a joypad input class soon (along with the vibration API), it's all just a matter of time really! Have to stay focused and get things resolved in order, and not bits and pieces everywhere DWboutin and shawnbless 2 Link to comment Share on other sites More sharing options...
DWboutin Posted December 23, 2013 Share Posted December 23, 2013 Sure! I understand very well! Great job Rich!I'll keep developing my games with the keyboard for now!Thank you Link to comment Share on other sites More sharing options...
tackle Posted January 9, 2014 Share Posted January 9, 2014 Sure! I understand very well! Great job Rich!I'll keep developing my games with the keyboard for now!Thank you Check the dev branch of the repo, there is now built in support for Gamepad (mainly XBOX360 in Windows7), several examples also. Temechon and DWboutin 2 Link to comment Share on other sites More sharing options...
Recommended Posts