-
Notifications
You must be signed in to change notification settings - Fork 137
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
Feature request: More buttons and axis on controller output emulation. #182
Comments
Probably best to compile a custom version of the firmware tailored to your needs. Adding more buttons and joysticks is a fairly simple change in the report descriptor. |
I have never before worked with usb devices and descriptors. Could you point me in the right direction for what to look into? EDIT: I found out how it works and am currently working on my fork. Thank you for all the work you put into this amazing project! |
Okay, so i fiddled with the code a bit and the outcome is not quite as expected. I probably missed a few important points... 0x05, 0x09, // Usage Page (Button) That is what i have in the file our_descriptor.cc, the "..." stands for the rest of the numbers. I excluded 0x08 because of its predefined function. |
You seem to be on the right track. The buttons you add won't have proper labels on the configuration website, but you should still be able to select them after you connect to your HID Remapper, they should be at the bottom with just hex codes like 0x0009000a etc. You probably also have to update the *_neutral array for the descriptor you're modifying (add zeros in the right place for the extra buttons). Other than that the only thing to worry about is that the entire report has to end on a byte boundary (size in bits divisible by 8), but you seem to have that covered (though beware of comments not matching the actual values in the report descriptor - for example 0x1f isn't 39!). Here's something that works for me: 309ce8c |
Thank you for your answer, the problem was really the _neutral array, got it working now. |
Would it be possible to increase the amount of buttons that can be used as an output? The limitation of the controller buttons is to small, for example I have a device with over 40 buttons and 4 axis. If the existing controllers are intended to not change, then maybe consider to add a new controller type with maybe 5 or more axis, and around 50 to 60 buttons. That would also enable the remapper to be easily used with custom build devices. If this is to far from what the remapper should be, then maybe consider to add a device option that combines mouse, keybord and joystick.
The text was updated successfully, but these errors were encountered: