caiiiycuk / js-dos

The best API for running dos programs in browser

Home Page:https://js-dos.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joystick Support

landonpoch opened this issue · comments

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!

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