caiiiycuk / js-dos

The best API for running dos programs in browser
https://js-dos.com
1.06k stars 126 forks source link

Joystick Support #266

Open landonpoch opened 1 year ago

landonpoch commented 1 year ago

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!

caiiiycuk commented 1 year ago

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