diff options
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/drivers/joycon.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/input_common/drivers/joycon.cpp b/src/input_common/drivers/joycon.cpp index 1fca11d34..c6f78c989 100644 --- a/src/input_common/drivers/joycon.cpp +++ b/src/input_common/drivers/joycon.cpp | |||
| @@ -335,7 +335,16 @@ void Joycons::OnBatteryUpdate(std::size_t port, Joycon::ControllerType type, | |||
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | void Joycons::OnColorUpdate(std::size_t port, Joycon::ControllerType type, | 337 | void Joycons::OnColorUpdate(std::size_t port, Joycon::ControllerType type, |
| 338 | const Joycon::Color& value) {} | 338 | const Joycon::Color& value) { |
| 339 | const auto identifier = GetIdentifier(port, type); | ||
| 340 | Common::Input::BodyColorStatus color{ | ||
| 341 | .body = value.body, | ||
| 342 | .buttons = value.buttons, | ||
| 343 | .left_grip = value.left_grip, | ||
| 344 | .right_grip = value.right_grip, | ||
| 345 | }; | ||
| 346 | SetColor(identifier, color); | ||
| 347 | } | ||
| 339 | 348 | ||
| 340 | void Joycons::OnButtonUpdate(std::size_t port, Joycon::ControllerType type, int id, bool value) { | 349 | void Joycons::OnButtonUpdate(std::size_t port, Joycon::ControllerType type, int id, bool value) { |
| 341 | const auto identifier = GetIdentifier(port, type); | 350 | const auto identifier = GetIdentifier(port, type); |