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

Joysticks support #2

Open
shuxin opened this issue Aug 23, 2019 · 2 comments
Open

Joysticks support #2

shuxin opened this issue Aug 23, 2019 · 2 comments

Comments

@shuxin
Copy link

shuxin commented Aug 23, 2019

U2U is a great invention, and I like it very much. But I don’t know what to do when I try to convert some joystick keys to keyboard keys. As we all known that USB_Host_Shield_2.0 support Xbox and Ps joysticks. So, could you share the way to build a new firmware with joysticks support.

@shuxin shuxin changed the title firmware source code request Joysticks support Aug 23, 2019
@tmk
Copy link
Owner

tmk commented Aug 24, 2019

Simple ways would be to write Parser for the joystick to converter input from joystick into keyboard code and store it in report_keyboard_t.

https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/usb_hid/parser.h#L10
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/usb_hid/parser.cpp#L7-L23

@shuxin
Copy link
Author

shuxin commented Aug 24, 2019 via email

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

No branches or pull requests

2 participants