js-dos icon indicating copy to clipboard operation
js-dos copied to clipboard

Joystick Support

Open landonpoch opened this issue 2 years ago • 1 comments
trafficstars

Any plans to support joysticks / gamepads in the works? I've tried it out on an old dos game (aces of the pacific) and it appears that it cannot detect a joystick even though I have one connected and working in windows. No matter what I do I can't turn that joystick on. It isn't detected.

However there is a gamepad API for browsers: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API

I've been able to confirm that my joystick shows up in the API in my browser:

I realize this is probably just a hobby project so any work on this is very appreciated! However, it does seem very possible to achieve and there are quite a few other games that would benefit from this as well (Descent, Red Baron, etc...) Thank you!

landonpoch avatar Jan 13 '23 14:01 landonpoch

Yep, it's possible, but maybe later...

caiiiycuk avatar Jan 14 '23 19:01 caiiiycuk