Player 2 gamepad not recognised
I'm making a HTML5 game with local multiplayer, but I've ran into a huge hurdle. I want both players to each use a game controller, and I've set everything up correctly in my game, but only player 1's gamepad is recognized by the game.
To help narrow down the problem, I used an online gamepad tester tool to confirm that the computer recognizes them as P1 and P2 controllers when both plugged in. In my game I added a display text behavior: "devices.players.player2.joystick.connected", and it stays false no matter what I do.
It has to be a bug in the engine, please fix it, I've been looking forward to playing my game with somebody.
Comments
Could you help me out and see if you see the following in the web console twice after both are connected?
"Gamepad connected at index %d: %s. %d buttons, %d axes." (the % are template values so will change).
Okay, I figured it out. First off you need to set the game Multiplayer Type attribute to Multiplayer (this was to handle the case where a game was only meant to be single controller and would save on some confusion).
That leads to another bug though, so we'll be pushing a fix for that soon.
K, tested and you're good to republish and try it out!
It works great now, thank you very much!