diff options
| author | 2022-12-23 08:32:02 -0600 | |
|---|---|---|
| committer | 2023-01-19 18:05:22 -0600 | |
| commit | e1a3bda4d9881cb99c36b64733b814a3bb437f13 (patch) | |
| tree | a9c0d864b023a810f48c129bb8bd6e84afb2ed2b /src/input_common/helpers/joycon_driver.cpp | |
| parent | core: hid: Fix input regressions (diff) | |
| download | yuzu-e1a3bda4d9881cb99c36b64733b814a3bb437f13.tar.gz yuzu-e1a3bda4d9881cb99c36b64733b814a3bb437f13.tar.xz yuzu-e1a3bda4d9881cb99c36b64733b814a3bb437f13.zip | |
Address review comments
Diffstat (limited to 'src/input_common/helpers/joycon_driver.cpp')
| -rw-r--r-- | src/input_common/helpers/joycon_driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/helpers/joycon_driver.cpp b/src/input_common/helpers/joycon_driver.cpp index db9ff4875..8982a2397 100644 --- a/src/input_common/helpers/joycon_driver.cpp +++ b/src/input_common/helpers/joycon_driver.cpp | |||
| @@ -465,7 +465,7 @@ void JoyconDriver::SetCallbacks(const Joycon::JoyconCallbacks& callbacks) { | |||
| 465 | 465 | ||
| 466 | Joycon::DriverResult JoyconDriver::GetDeviceType(SDL_hid_device_info* device_info, | 466 | Joycon::DriverResult JoyconDriver::GetDeviceType(SDL_hid_device_info* device_info, |
| 467 | ControllerType& controller_type) { | 467 | ControllerType& controller_type) { |
| 468 | std::array<std::pair<u32, Joycon::ControllerType>, 4> supported_devices{ | 468 | static constexpr std::array<std::pair<u32, Joycon::ControllerType>, 4> supported_devices{ |
| 469 | std::pair<u32, Joycon::ControllerType>{0x2006, Joycon::ControllerType::Left}, | 469 | std::pair<u32, Joycon::ControllerType>{0x2006, Joycon::ControllerType::Left}, |
| 470 | {0x2007, Joycon::ControllerType::Right}, | 470 | {0x2007, Joycon::ControllerType::Right}, |
| 471 | {0x2009, Joycon::ControllerType::Pro}, | 471 | {0x2009, Joycon::ControllerType::Pro}, |