diff options
author | german77 <juangerman-13@hotmail.com> | 2023-11-03 00:42:47 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-11-03 01:39:08 +0100 |
commit | 57cf830862bac1d68d660c120014e7d5021b72e8 (patch) | |
tree | 20180cba4d5f62bedc9684a086ff48b7482b8d42 /src/core/hid/hid_types.h | |
parent | Merge pull request #11920 from Termynat0r/master (diff) | |
download | yuzu-57cf830862bac1d68d660c120014e7d5021b72e8.tar yuzu-57cf830862bac1d68d660c120014e7d5021b72e8.tar.gz yuzu-57cf830862bac1d68d660c120014e7d5021b72e8.tar.bz2 yuzu-57cf830862bac1d68d660c120014e7d5021b72e8.tar.lz yuzu-57cf830862bac1d68d660c120014e7d5021b72e8.tar.xz yuzu-57cf830862bac1d68d660c120014e7d5021b72e8.tar.zst yuzu-57cf830862bac1d68d660c120014e7d5021b72e8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hid/hid_types.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/core/hid/hid_types.h b/src/core/hid/hid_types.h index 00beb40dd..7ba75a50c 100644 --- a/src/core/hid/hid_types.h +++ b/src/core/hid/hid_types.h @@ -302,6 +302,15 @@ enum class TouchScreenModeForNx : u8 { Heat2, }; +// This is nn::hid::system::NpadBatteryLevel +enum class NpadBatteryLevel : u32 { + Empty, + Critical, + Low, + High, + Full, +}; + // This is nn::hid::NpadStyleTag struct NpadStyleTag { union { @@ -385,16 +394,12 @@ struct NpadGcTriggerState { }; static_assert(sizeof(NpadGcTriggerState) == 0x10, "NpadGcTriggerState is an invalid size"); -// This is nn::hid::system::NpadBatteryLevel -using NpadBatteryLevel = u32; -static_assert(sizeof(NpadBatteryLevel) == 0x4, "NpadBatteryLevel is an invalid size"); - // This is nn::hid::system::NpadPowerInfo struct NpadPowerInfo { bool is_powered{}; bool is_charging{}; INSERT_PADDING_BYTES(0x6); - NpadBatteryLevel battery_level{8}; + NpadBatteryLevel battery_level{NpadBatteryLevel::Full}; }; static_assert(sizeof(NpadPowerInfo) == 0xC, "NpadPowerInfo is an invalid size"); |