mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-19 03:18:01 -05:00
service/hid: Finish converting LIFO objects and address some nits
This commit is contained in:
@ -723,7 +723,7 @@ void EmulatedController::SetBattery(Common::Input::CallbackStatus callback, std:
|
||||
|
||||
bool is_charging = false;
|
||||
bool is_powered = false;
|
||||
BatteryLevel battery_level = 0;
|
||||
NpadBatteryLevel battery_level = 0;
|
||||
switch (controller.battery_values[index]) {
|
||||
case Common::Input::BatteryLevel::Charging:
|
||||
is_charging = true;
|
||||
|
@ -346,15 +346,15 @@ struct NpadGcTriggerState {
|
||||
static_assert(sizeof(NpadGcTriggerState) == 0x10, "NpadGcTriggerState is an invalid size");
|
||||
|
||||
// This is nn::hid::system::NpadBatteryLevel
|
||||
using BatteryLevel = u32;
|
||||
static_assert(sizeof(BatteryLevel) == 0x4, "BatteryLevel is an invalid size");
|
||||
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);
|
||||
BatteryLevel battery_level;
|
||||
NpadBatteryLevel battery_level;
|
||||
};
|
||||
static_assert(sizeof(NpadPowerInfo) == 0xC, "NpadPowerInfo is an invalid size");
|
||||
|
||||
|
Reference in New Issue
Block a user