mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 08:08:18 -05:00
core/hid: Rework battery mappings
This commit is contained in:
@ -33,6 +33,10 @@ Input::BatteryStatus TransformToBattery(const Input::CallbackStatus& callback) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Input::InputType::Button:
|
||||
battery = callback.button_status.value ? Input::BatteryLevel::Charging
|
||||
: Input::BatteryLevel::Critical;
|
||||
break;
|
||||
case Input::InputType::Battery:
|
||||
battery = callback.battery_status;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user