mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 22:45:45 +00:00
core/hid: Rework battery mappings
This commit is contained in:
parent
c6c32daf40
commit
064ddacf49
9 changed files with 109 additions and 46 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue