diff options
| author | 2023-01-26 11:21:04 -0600 | |
|---|---|---|
| committer | 2023-01-26 11:21:04 -0600 | |
| commit | 49707916db500e8225676a4caa4109f69d25faf3 (patch) | |
| tree | 83aa03583c1a62fe0e86bfdb44e9e11b7d480a0d /src/input_common/helpers/joycon_driver.cpp | |
| parent | Revert 9617 and fix it on input_common (diff) | |
| download | yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.gz yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.xz yuzu-49707916db500e8225676a4caa4109f69d25faf3.zip | |
input_common: Implement SetLowPowerMode and TriggersElapsed for the joycon driver
Diffstat (limited to '')
| -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; |