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 | 7d0a77a825ff16fc3449cd32d436107507e19ae8 (patch) | |
tree | 96c6269e01338fe630d03af62ccbd983632bce0c /src/input_common/helpers/joycon_driver.cpp | |
parent | 5669692b4ec6182f54294f8609766b1ea33e145c (diff) | |
parent | 49707916db500e8225676a4caa4109f69d25faf3 (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 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() { // 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; |