diff options
| author | bunnei <bunneidev@gmail.com> | 2023-01-26 10:56:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-26 10:56:31 -0800 |
| commit | bfe5129779d81c34fe1e3a6cebf6db203b1b6ae2 (patch) | |
| tree | 96c6269e01338fe630d03af62ccbd983632bce0c /src/input_common/helpers/joycon_driver.cpp | |
| parent | 7c607953e54d7f1a6e3e74e86342ce8321cb1e32 (diff) | |
| parent | 8666d84926e21d3de6f264671c65dc4af1a2f909 (diff) | |
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 4159e5717a..3775e2d358 100644 --- a/src/input_common/helpers/joycon_driver.cpp +++ b/src/input_common/helpers/joycon_driver.cpp @@ -86,6 +86,7 @@ DriverResult JoyconDriver::InitializeDevice() { // Get fixed joycon info generic_protocol->GetVersionNumber(version); + generic_protocol->SetLowPowerMode(false); generic_protocol->GetColor(color); if (handle_device_type == ControllerType::Pro) { // Some 3rd party controllers aren't pro controllers @@ -324,6 +325,8 @@ DriverResult JoyconDriver::SetPollingMode() { if (result != DriverResult::Success) { LOG_ERROR(Input, "Error enabling active mode"); } + // Switch calls this function after enabling active mode + generic_protocol->TriggersElapsed(); disable_input_thread = false; return result; |
