diff options
author | bunnei <bunneidev@gmail.com> | 2022-08-10 01:21:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 01:21:23 +0200 |
commit | 0069b5e118dbc91f2a8b3c30612ea223864c6527 (patch) | |
tree | 2103bb82bf7fe9e9669dc4a9992af8621a64cece /src/core/hid/hid_types.h | |
parent | Merge pull request #8729 from merryhime/cp15-barriers (diff) | |
parent | hid: core: Properly emulate controller color and battery level (diff) | |
download | yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar.gz yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar.bz2 yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar.lz yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar.xz yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.tar.zst yuzu-0069b5e118dbc91f2a8b3c30612ea223864c6527.zip |
Diffstat (limited to 'src/core/hid/hid_types.h')
-rw-r--r-- | src/core/hid/hid_types.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hid/hid_types.h b/src/core/hid/hid_types.h index e49223016..e3b1cfbc6 100644 --- a/src/core/hid/hid_types.h +++ b/src/core/hid/hid_types.h @@ -327,10 +327,18 @@ struct TouchState { }; static_assert(sizeof(TouchState) == 0x28, "Touchstate is an invalid size"); +struct NpadColor { + u8 r{}; + u8 g{}; + u8 b{}; + u8 a{}; +}; +static_assert(sizeof(NpadColor) == 4, "NpadColor is an invalid size"); + // This is nn::hid::NpadControllerColor struct NpadControllerColor { - u32 body{}; - u32 button{}; + NpadColor body{}; + NpadColor button{}; }; static_assert(sizeof(NpadControllerColor) == 8, "NpadControllerColor is an invalid size"); |