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

FIX: A number of problems with HID joysticks. #806

Merged
merged 18 commits into from
Aug 28, 2019
Merged

Conversation

Rene-Damm
Copy link
Contributor

@Rene-Damm Rene-Damm commented Aug 26, 2019

Looking into problems with the G25 Racing Wheel, I found quite a number of issues around joysticks so unfortunately, this branch ended up accumulating quite a few changes.

Most important changes:

  • HID can now deal with sticks that have their X and Y control sitting in unrelated places in the HID input report and being of different geometry. On the G25 Racing Wheel in particular, we have a 14bit X axis with a 2-bit offset (!) and several controls later an 8-bit Y axis.
  • There was a problem in InputDeviceBuilder with settings on controls like up/down/left/right not coming through because of an unfinished refactor of mine. Turned out to be very simple to solve and removed a bunch of code.
  • The Linux joystick code had a mismatching field and thus lost data. featureSize was called size in C# and thus always 0.

@Rene-Damm Rene-Damm requested review from jechter and douglas-piconi and removed request for jechter and douglas-piconi August 26, 2019 19:06
@douglas-piconi
Copy link
Contributor

can't approve just yet, lot of red on these tests. Other than that code looks fine

@Rene-Damm
Copy link
Contributor Author

can't approve just yet, lot of red on these tests. Other than that code looks fine

Yeah, hit "add reviewers" a tad bit too early :) I'll go green it first.

@Rene-Damm Rene-Damm merged commit c65234a into develop Aug 28, 2019
@Rene-Damm Rene-Damm deleted the fix-hid-axes branch August 28, 2019 13:07
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.

3 participants