-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 new method HidController::send_feature_report #3051
Added new method HidController::send_feature_report #3051
Conversation
Do I need to document this new API method anywhere? |
This is a new feature so it should go to the master branch. |
https://github.com/mixxxdj/mixxx/wiki/hid%20mapping#sending-data-to-the-controller |
Removed unnecessary length argument Merged the two sendFeatureReport methods into one
Made Qlist const
Hmm, we could do this. Or we could make the report ID the first argument so it can't be omitted by the script. However, that could get confusing because |
This comment has been minimized.
This comment has been minimized.
Always print warnings independent of the ControllerDebug::enabled() state
If it's the common opinion, that the method HidController::send_feature_report should have the Report ID at the begining while the nearly identical method HidController::send has it at the end, I will change it! |
I agree with that opinion. Either change all signatures or mimic the old style, even if it is considered inappropriate. Consistency is key. |
How about let's make this new function fit with the existing |
Regular int suffices Name it kReportIdSize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, unfortunately I can't test this as I don't own an HID controller.
@ywwg Hello Owen, can this be merged? |
Ping @ywwg |
What can I do, to get this PR merged? |
@ywwg Do you've any objections to merge this? |
Ping @ywwg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks straightforward. It would be nice if there was a way to add a test for this but we don't have any tests for hidcontroller :(
LGTM
sorry for my lack of response, github notifies me about every single PR and doesn't highlight individual pings :/. Best to @ me on zulip to get my attention |
Merge? |
Safe to merge and after everyone approved the PR no reason for holding this back any longer. Thank your for contributing to Mixxx, Jörg. LGTM |
Made the method hid_send_feature_report from HIDAPI available to controller mappings.
This generic USB HID "Set Reports (Feature)" functionality is needed to set the NI Traktor Z2 in a mode, where it accepts the bulk HID reports for LED control. See also: https://mixxx.zulipchat.com/#narrow/stream/113295-controller-mapping/topic/Traktor.20Kontrol.20Z2
The USBlyzer dump looks now like this: