summaryrefslogtreecommitdiffstats
path: root/src/input_common/helpers/joycon_driver.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-01-26 19:56:31 +0100
committerGitHub <noreply@github.com>2023-01-26 19:56:31 +0100
commit7d0a77a825ff16fc3449cd32d436107507e19ae8 (patch)
tree96c6269e01338fe630d03af62ccbd983632bce0c /src/input_common/helpers/joycon_driver.cpp
parentMerge pull request #9670 from merryhime/revert-af5ecb0b15d4449f58434e70eed835cf71fc5527 (diff)
parentinput_common: Implement SetLowPowerMode and TriggersElapsed for the joycon driver (diff)
downloadyuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar
yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar.gz
yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar.bz2
yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar.lz
yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar.xz
yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.tar.zst
yuzu-7d0a77a825ff16fc3449cd32d436107507e19ae8.zip
Diffstat (limited to 'src/input_common/helpers/joycon_driver.cpp')
-rw-r--r--src/input_common/helpers/joycon_driver.cpp3
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;