wipeout-rewrite icon indicating copy to clipboard operation
wipeout-rewrite copied to clipboard

WASM support for Gamepad API

Open jonsage opened this issue 2 years ago • 3 comments

When playing in browser it would be great to have option to use a controller

https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API

jonsage avatar Aug 25 '23 01:08 jonsage

Wasm build with the sokol backend which doesn't handle joystick. He's actually looking for a way to make it ;)

GregLebreton avatar Aug 26 '23 07:08 GregLebreton

Servus! First: thanks for all your work! This game's rewrite is amazing!

I still can't make my Xbox One controller work on the browser version. Are there still any bugs I maybe don't know about or hasn't the controller support been finished yet?

chrislenz1990xD avatar Mar 30 '24 18:03 chrislenz1990xD

The work for controller support in the browser hasn't started :)

The easiest way to get this working, would be to use the JS Gamepad API and forward all inputs to WASM, similarly to how touch buttons are implemented here in JS and in C.

phoboslab avatar Apr 01 '24 10:04 phoboslab