diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-08-06 05:33:49 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-08-08 20:12:02 +0200 |
commit | 301702e548844e3df5099382e90766966940d0a9 (patch) | |
tree | 193c293f3abf95df5855f9161da9e48c921d70f0 /src/core/hid/hid_types.h | |
parent | Controller bugfixes in profile select (#8716) (diff) | |
download | yuzu-301702e548844e3df5099382e90766966940d0a9.tar yuzu-301702e548844e3df5099382e90766966940d0a9.tar.gz yuzu-301702e548844e3df5099382e90766966940d0a9.tar.bz2 yuzu-301702e548844e3df5099382e90766966940d0a9.tar.lz yuzu-301702e548844e3df5099382e90766966940d0a9.tar.xz yuzu-301702e548844e3df5099382e90766966940d0a9.tar.zst yuzu-301702e548844e3df5099382e90766966940d0a9.zip |
Diffstat (limited to '')
-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"); |