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

Add typed getters for input device config space #144

Merged
merged 8 commits into from
Jun 20, 2024
Merged

Add typed getters for input device config space #144

merged 8 commits into from
Jun 20, 2024

Conversation

qwandor
Copy link
Collaborator

@qwandor qwandor commented Jun 12, 2024

Rather than just adding bytes to a buffer, these return the appropriate type for the selector.

The size of the data available for a particular selector is given by the device, so only read that much data rather than the full 128 bytes every time.

@qwandor qwandor changed the title Only read as much data from input config space as is available. Add typed getter for input device config space Jun 12, 2024
@qwandor qwandor changed the title Add typed getter for input device config space Add typed getters for input device config space Jun 13, 2024
src/device/input.rs Outdated Show resolved Hide resolved
src/device/input.rs Show resolved Hide resolved
@qwandor qwandor merged commit c34fb8b into master Jun 20, 2024
6 checks passed
@qwandor qwandor deleted the input_data branch June 20, 2024 10:17
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