Jump to content

Phaser 2.4.6 & Xbox One


MiY4MOTO
 Share

Recommended Posts

I'm trying to implement controller support and have been testing using the Xbox One's MS Edge browser. Everything renders fine & runs well (sounds, animation etc.) but the controller doesn't respond.

I used the code from the examples, and when I switch between 'browser' & 'gamepad' mode in the Xbox UI, the "controller connected" code (game.input.gamepad.supported && game.input.gamepad.active && pad.connected) executes fine and shows the correct connected / disconnected status.

However, it appears that the browser only receives a single response from the pad while connecting / disconnecting as whatever action I do or button I press whilst connecting triggers endlessly until I disconnect via the Xbox UI.  By trialling all of the different inputs I can see that it's recognised the same as a 360 controller (Phaser.Gamepad.XBOX360_DPAD_UP etc.) but I'm at a loss at why it won't work correctly, only receiving inputs on connect.

I even tried browsing the the phaser.io examples pages using the XB1 browser but found that they didn't work as expected either.

I know there *are* browser games for the XB1 that work with the controller (I.e. http://playboxie.com/x1) but does anyone know of one that uses GamePad mode with Phaser (rather than emulating mouse controls) so I can take a look at an example that works as I'm at a loss?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...