summaryrefslogtreecommitdiffstats
path: root/src/input_common/helpers/joycon_driver.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-01-26 18:21:04 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-01-26 18:21:04 +0100
commit49707916db500e8225676a4caa4109f69d25faf3 (patch)
tree83aa03583c1a62fe0e86bfdb44e9e11b7d480a0d /src/input_common/helpers/joycon_driver.cpp
parentRevert 9617 and fix it on input_common (diff)
downloadyuzu-49707916db500e8225676a4caa4109f69d25faf3.tar
yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.gz
yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.bz2
yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.lz
yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.xz
yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.zst
yuzu-49707916db500e8225676a4caa4109f69d25faf3.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;