Hello!
Is there a good way to play cartridges in the browser with a gamepad/joystick? Is it even possible to use gamepad input with javascript?
I plan to do a local PICO-8 game jam and I would like show the outcome on a website for a larger audience to play. If this way would offer gamepad support it would be so much better.
I can use a third party software to map gamepad input to individual keyboard keys. But that is a lot of installation and config work and I would rather have the visitors "just play".
Any ideas? Thanks!
Mozilla has support for it: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
Looks like Chrome has support for it if you explicitly enable it (in other words, it doesn't really support it). I doubt any other browsers support it. Kinda seems like a waste of time to implement it right now.
I wanted to try interfacing pico 8 with gamepad api, as it seam to work prety well on some browser, but didn't take the time. It should be "easy" as Pico can recive inputs from javascript.
That means so far the HTML exports from PICO-8 do not support any gamepads at the moment, right?
[Please log in to post a comment]