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

Added support for slider, dial and 4 hat switches #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gavazquez
Copy link

I implemented the changes of this PR: #129
But I also added support for 4 hat switches (they are very useful for hotas controllers)

I also added a limit of 128 buttons as that's the maximum that HID supports

@MHeironimus
Copy link
Owner

Just curious if you have a reference for your statement "a limit of 128 buttons as that's the maximum that HID supports". My understanding was the limit was 0xFFFF (65535) based on what I have read in section 12 Button Page of the https://usb.org/sites/default/files/documents/hut1_12v2.pdf, but I don't think many applications/operating systems can actually see that many. The library supports up to 255, but most applications cannot see that many. There is a section about this in the FAQ (https://github.com/MHeironimus/ArduinoJoystickLibrary/wiki/FAQ).

@gavazquez
Copy link
Author

You're right. The app I was using couldn't see past 128 buttons and I saw that some other people took that limit aswell so I assumed that it was the standard.

The 4 hat switches are useful tough since many high end joysticks have them:
https://virpil.com/images/2019/02/16/MT-50CM2_02.png

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

Successfully merging this pull request may close these issues.

2 participants