diff options
author | bunnei <bunneidev@gmail.com> | 2022-01-11 19:49:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 19:49:23 +0100 |
commit | c65c651b6fb174084a26039ce6ea78e9cd3aedf0 (patch) | |
tree | 9790b6abe3e9d05649629fe851031438ed6ad139 /src/core/hid/hid_types.h | |
parent | Merge pull request #7683 from liushuyu/fmt-8.1 (diff) | |
parent | yuzu: Add controller hotkeys (diff) | |
download | yuzu-c65c651b6fb174084a26039ce6ea78e9cd3aedf0.tar yuzu-c65c651b6fb174084a26039ce6ea78e9cd3aedf0.tar.gz yuzu-c65c651b6fb174084a26039ce6ea78e9cd3aedf0.tar.bz2 yuzu-c65c651b6fb174084a26039ce6ea78e9cd3aedf0.tar.lz yuzu-c65c651b6fb174084a26039ce6ea78e9cd3aedf0.tar.xz yuzu-c65c651b6fb174084a26039ce6ea78e9cd3aedf0.tar.zst yuzu-c65c651b6fb174084a26039ce6ea78e9cd3aedf0.zip |
Diffstat (limited to 'src/core/hid/hid_types.h')
-rw-r--r-- | src/core/hid/hid_types.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/hid/hid_types.h b/src/core/hid/hid_types.h index 4eca68533..778b328b9 100644 --- a/src/core/hid/hid_types.h +++ b/src/core/hid/hid_types.h @@ -378,6 +378,26 @@ struct LedPattern { }; }; +struct HomeButtonState { + union { + u64 raw{}; + + // Buttons + BitField<0, 1, u64> home; + }; +}; +static_assert(sizeof(HomeButtonState) == 0x8, "HomeButtonState has incorrect size."); + +struct CaptureButtonState { + union { + u64 raw{}; + + // Buttons + BitField<0, 1, u64> capture; + }; +}; +static_assert(sizeof(CaptureButtonState) == 0x8, "CaptureButtonState has incorrect size."); + struct NpadButtonState { union { NpadButton raw{}; |