diff options
| author | 2023-01-26 10:56:31 -0800 | |
|---|---|---|
| committer | 2023-01-26 10:56:31 -0800 | |
| commit | 7d0a77a825ff16fc3449cd32d436107507e19ae8 (patch) | |
| tree | 96c6269e01338fe630d03af62ccbd983632bce0c /src/input_common/helpers/joycon_driver.cpp | |
| parent | Merge pull request #9670 from merryhime/revert-af5ecb0b15d4449f58434e70eed835... (diff) | |
| parent | input_common: Implement SetLowPowerMode and TriggersElapsed for the joycon dr... (diff) | |
| download | yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar.gz yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar.xz yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.zip | |
Merge pull request #9683 from german77/high_power_joycon
input_common: Implement SetLowPowerMode and TriggersElapsed
Diffstat (limited to 'src/input_common/helpers/joycon_driver.cpp')
| -rw-r--r-- | src/input_common/helpers/joycon_driver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_common/helpers/joycon_driver.cpp b/src/input_common/helpers/joycon_driver.cpp index 4159e5717..3775e2d35 100644 --- a/src/input_common/helpers/joycon_driver.cpp +++ b/src/input_common/helpers/joycon_driver.cpp | |||
| @@ -86,6 +86,7 @@ DriverResult JoyconDriver::InitializeDevice() { | |||
| 86 | 86 | ||
| 87 | // Get fixed joycon info | 87 | // Get fixed joycon info |
| 88 | generic_protocol->GetVersionNumber(version); | 88 | generic_protocol->GetVersionNumber(version); |
| 89 | generic_protocol->SetLowPowerMode(false); | ||
| 89 | generic_protocol->GetColor(color); | 90 | generic_protocol->GetColor(color); |
| 90 | if (handle_device_type == ControllerType::Pro) { | 91 | if (handle_device_type == ControllerType::Pro) { |
| 91 | // Some 3rd party controllers aren't pro controllers | 92 | // Some 3rd party controllers aren't pro controllers |
| @@ -324,6 +325,8 @@ DriverResult JoyconDriver::SetPollingMode() { | |||
| 324 | if (result != DriverResult::Success) { | 325 | if (result != DriverResult::Success) { |
| 325 | LOG_ERROR(Input, "Error enabling active mode"); | 326 | LOG_ERROR(Input, "Error enabling active mode"); |
| 326 | } | 327 | } |
| 328 | // Switch calls this function after enabling active mode | ||
| 329 | generic_protocol->TriggersElapsed(); | ||
| 327 | 330 | ||
| 328 | disable_input_thread = false; | 331 | disable_input_thread = false; |
| 329 | return result; | 332 | return result; |