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

Xbox One gamepad: dpad doesn't send events #206

Open
gyscos opened this issue Nov 3, 2015 · 2 comments
Open

Xbox One gamepad: dpad doesn't send events #206

gyscos opened this issue Nov 3, 2015 · 2 comments

Comments

@gyscos
Copy link

gyscos commented Nov 3, 2015

I have a Xbox One gamepad plugged with a USB cable.
Using a simple test app in C, I see that everything works fine and is detected by SDL2, including the d-pad.
However, when using the sdl2_window backend for piston and printing all input events, I receive events for every part of the gamepad, except the dpad, it's as if it wasn't present at all.

Does the dpad require specific handling? The test app refers to it as a hat, does this mean something?
Thanks!

@xaviershay
Copy link
Contributor

Joystick support is new, implemented by me, and I didn't know hats were a thing (I just have a SNES controller!) So fairly certain this just needs to be implemented. Unfortunately, I don't have that controller to test. If you're interested in digging in:

Good luck!

@xaviershay
Copy link
Contributor

Handy example program to test with

and a protip I wish I knew about when I started this stuff: you can setup your .cargo/config file to use local checkouts of all the above projects)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants