Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joystick events #624

Open
LaylBongers opened this issue Aug 9, 2018 · 3 comments
Open

Joystick events #624

LaylBongers opened this issue Aug 9, 2018 · 3 comments
Labels
C - in progress Implementation is proceeding smoothly DS - windows S - enhancement Wouldn't this be the coolest?

Comments

@LaylBongers
Copy link

The recommended method of getting joystick events on Windows, for devices that do not fall under the XInput API, is to use the raw input API (WM_INPUT). I saw that winit already does this for mouse & keyboard events, but not yet for joysticks.

Since I've got a need for this in my own project, I hope to soon give a shot at implementing this on Windows, but if anyone else who is more familiar with this API can implement it faster than I could, that would be appreciated.

@francesca64 francesca64 added S - enhancement Wouldn't this be the coolest? DS - wayland C - in progress Implementation is proceeding smoothly labels Aug 9, 2018
@francesca64
Copy link
Member

Funnily enough, I implemented both this and version-agnostic XInput support a while ago... https://github.com/francesca64/winit/tree/win-joy

I just never merged it, since I was concerned about breaking the API later on, and it's missing some special-casing for rumble/etc. I expected to iron out the design more by implementing joystick support on Linux and macOS, but never got around to it.

So, I guess I should rebase it and make a PR.

@Osspial
Copy link
Contributor

Osspial commented Feb 14, 2019

@francesca64 I'd be up for taking over that PR, rebasing it against the event loop 2.0 code, and getting it ready to release on Windows, if you're okay with it.

@francesca64
Copy link
Member

@Osspial absolutely! Thanks a bunch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - in progress Implementation is proceeding smoothly DS - windows S - enhancement Wouldn't this be the coolest?
Development

No branches or pull requests

3 participants