WebQuake
WebQuake copied to clipboard
Gamepad support
http://www.html5rocks.com/en/tutorials/doodles/gamepad/
Would be sweet to support gamepads edit: Nevermind, I just saw the readme
https://github.com/kzahel/WebQuake/commit/c3d30fccc0a3260c16cf406ef6f104c8dd8eb488
I played around and got gamepad working, it was pretty simple.
Original quake didn't have gamepad support, I guess. And gamepads didn't really come around until like N64 goldeneye and halo. I couldn't find anywhere to set sensible default controls, I guess those are in the pakfile config.cfg, unfortunately.
gamepad support is pretty hacky... I can see why you didn't want to put it in.
Looking at https://w3c.github.io/gamepad/ and https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API it looks like the situation is much better nowadays. @Triang3l what's your stance on gamepad support now?
Might be interesting to try to port the joystick code from Quake, have never played it with a gamepad, but why not (when I'm not too lazy to do it).