Address review comments
This commit is contained in:
parent
1c08d532e0
commit
e1a3bda4d9
14 changed files with 44 additions and 46 deletions
|
@ -316,7 +316,7 @@ void Joycons::OnBatteryUpdate(std::size_t port, Joycon::ControllerType type,
|
|||
return;
|
||||
}
|
||||
|
||||
Common::Input::BatteryLevel battery{value.status.Value()};
|
||||
Common::Input::BatteryLevel battery{};
|
||||
switch (value.status) {
|
||||
case 0:
|
||||
battery = Common::Input::BatteryLevel::Empty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue