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 missing hid shared memory structures and accessor functions for system buttons #647

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

ndeadly
Copy link
Contributor

@ndeadly ndeadly commented Jun 26, 2024

This adds the remaining undefined *SharedMemoryFormat structures, plus functions for grabbing the state of the system buttons (home, capture, sleep) from shared memory.

To aid with verification, I checked all the struct sizes with static_assert so you don't have to https://godbolt.org/z/3eMxxEh8c

@WinterMute WinterMute merged commit df05082 into switchbrew:master Jun 28, 2024
1 check passed
@ndeadly ndeadly deleted the hid-shmem branch June 28, 2024 14:41
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