PS4 / Nacon Asymmetric controllers
Hey,
Is it just me doing something wrong or it doesn't work with PS4 nor Nacon controllers? I've simply pasted your example to check if that works and there is no onConnect() call at all.
For the record, I have "react-gamepad": "SBRK/react-gamepad" in my package.json
Best regards, ~Michał
Hi, I've never tested it with a PS4 controller, only Xbox One controller. Have a look at https://github.com/SBRK/react-gamepad/tree/master/src/layouts where you can add additional layouts. You could add a layout for PS4 controllers.
Since Cross on a PS4 controller corresponds to A on an XBOX controller, you would put "A" in the buttons array at the index corresponding to the PS4 Cross button, etc.
I know it's very strange and not practical, and I should rework the whole thing but I don't have time to work on this project anymore
I'm sorry I did bother you man, Nacon controller is connected and discovered correctly. There was an issue between my monitor and my chair this time :) There are some differences between xbox and nacon layouts so it's not so accurate in that case ofc, but that's a good start for me.
I'll try to find some time to do the update.
Thanks for such a quick response! ~Michał