Log In  

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!

P#19968 2016-04-22 14:50 ( Edited 2016-04-23 12:41)

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.

P#19969 2016-04-22 15:42 ( Edited 2016-04-22 19:42)

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.

P#19973 2016-04-23 06:02 ( Edited 2016-04-23 10:02)

That means so far the HTML exports from PICO-8 do not support any gamepads at the moment, right?

P#19975 2016-04-23 08:41 ( Edited 2016-04-23 12:41)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 07:46:46 | 0.006s | Q:12