diff options
Diffstat (limited to 'src/hid_core/hid_types.h')
-rw-r--r-- | src/hid_core/hid_types.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/hid_core/hid_types.h b/src/hid_core/hid_types.h index 3cf12f6e5..1b2fc6295 100644 --- a/src/hid_core/hid_types.h +++ b/src/hid_core/hid_types.h @@ -404,7 +404,10 @@ struct NpadPowerInfo { static_assert(sizeof(NpadPowerInfo) == 0xC, "NpadPowerInfo is an invalid size"); struct LedPattern { - explicit LedPattern(u64 light1, u64 light2, u64 light3, u64 light4) { + LedPattern() { + raw = 0; + } + LedPattern(u64 light1, u64 light2, u64 light3, u64 light4) { position1.Assign(light1); position2.Assign(light2); position3.Assign(light3); @@ -419,6 +422,16 @@ struct LedPattern { }; }; +struct SleepButtonState { + union { + u64 raw{}; + + // Buttons + BitField<0, 1, u64> sleep; + }; +}; +static_assert(sizeof(SleepButtonState) == 0x8, "SleepButtonState has incorrect size."); + struct HomeButtonState { union { u64 raw{}; |