Skip to content

Update sensor types and Return correct SensorData Enum #1461

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

Merged
merged 3 commits into from
Mar 19, 2025

Conversation

acieslewicz
Copy link
Contributor

First change updates get_data for Gyroscope to return the proper SensorData::Gyro instead of Accel. I think this matches the intended behavior, if not I can undo this. This might change might need to be added to the change log. Let me know if that is the case.

Second change updates SensorTypes to account for new SDL bindings that were added for joycons. This change should address issue #1428.

@antonilol antonilol linked an issue Mar 18, 2025 that may be closed by this pull request
@antonilol
Copy link
Contributor

Can you add a changelog entry and also mark it as a breaking change in there, adding variants to an enum (SensorType in this case) can break existing code.

@antonilol
Copy link
Contributor

The failing CI check should be gone if you rebase the commits here, this has been fixed recently.

@acieslewicz acieslewicz force-pushed the update_sensor_types branch from 5904d1d to 0292397 Compare March 19, 2025 00:27
@acieslewicz
Copy link
Contributor Author

Rebased and added changelog entries.

@antonilol antonilol merged commit bccd248 into Rust-SDL2:master Mar 19, 2025
17 checks passed
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.

bug: hidapi feature SensorType implementation
2 participants