WebQuake icon indicating copy to clipboard operation
WebQuake copied to clipboard

Gamepad support

Open kzahel opened this issue 10 years ago • 3 comments

http://www.html5rocks.com/en/tutorials/doodles/gamepad/

Would be sweet to support gamepads edit: Nevermind, I just saw the readme

kzahel avatar Sep 07 '13 22:09 kzahel

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.

kzahel avatar Sep 10 '13 05:09 kzahel

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?

SpiritQuaddicted avatar Apr 21 '19 11:04 SpiritQuaddicted

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).

Triang3l avatar Apr 21 '19 13:04 Triang3l