diff --git a/src/platform/linux/input/inputtino_gamepad.cpp b/src/platform/linux/input/inputtino_gamepad.cpp index 6d2e2347fa9..9459c02bf2d 100644 --- a/src/platform/linux/input/inputtino_gamepad.cpp +++ b/src/platform/linux/input/inputtino_gamepad.cpp @@ -258,7 +258,9 @@ namespace platf::gamepad { state = inputtino::PS5Joypad::BATTERY_FULL; break; } - std::get(*gamepad->joypad).set_battery(state, battery.percentage); + // Battery values in Moonlight are in the range [0, 0xFF (255)] + // Inputtino expects them as a percentage [0, 100] + std::get(*gamepad->joypad).set_battery(state, battery.percentage / 2.55); } } diff --git a/third-party/inputtino b/third-party/inputtino index 2739465690c..8a33706a146 160000 --- a/third-party/inputtino +++ b/third-party/inputtino @@ -1 +1 @@ -Subproject commit 2739465690c7bbd1a27cb4e285ff08f486a208e3 +Subproject commit 8a33706a146787a1ed3666ce52888634dd16cb86