summaryrefslogtreecommitdiff
path: root/src/input_common/helpers/joycon_protocol/generic_functions.h
diff options
context:
space:
mode:
authorGravatar Narr the Reg2023-01-26 11:21:04 -0600
committerGravatar Narr the Reg2023-01-26 11:21:04 -0600
commit49707916db500e8225676a4caa4109f69d25faf3 (patch)
tree83aa03583c1a62fe0e86bfdb44e9e11b7d480a0d /src/input_common/helpers/joycon_protocol/generic_functions.h
parentRevert 9617 and fix it on input_common (diff)
downloadyuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.gz
yuzu-49707916db500e8225676a4caa4109f69d25faf3.tar.xz
yuzu-49707916db500e8225676a4caa4109f69d25faf3.zip
input_common: Implement SetLowPowerMode and TriggersElapsed for the joycon driver
Diffstat (limited to 'src/input_common/helpers/joycon_protocol/generic_functions.h')
-rw-r--r--src/input_common/helpers/joycon_protocol/generic_functions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_common/helpers/joycon_protocol/generic_functions.h b/src/input_common/helpers/joycon_protocol/generic_functions.h
index 239bb7dbf..424831e81 100644
--- a/src/input_common/helpers/joycon_protocol/generic_functions.h
+++ b/src/input_common/helpers/joycon_protocol/generic_functions.h
@@ -25,6 +25,12 @@ public:
25 /// Enables active mode. This mode will return the current status every 5-15ms 25 /// Enables active mode. This mode will return the current status every 5-15ms
26 DriverResult EnableActiveMode(); 26 DriverResult EnableActiveMode();
27 27
28 /// Enables or disables the low power mode
29 DriverResult SetLowPowerMode(bool enable);
30
31 /// Unknown function used by the switch
32 DriverResult TriggersElapsed();
33
28 /** 34 /**
29 * Sends a request to obtain the joycon firmware and mac from handle 35 * Sends a request to obtain the joycon firmware and mac from handle
30 * @returns controller device info 36 * @returns controller device info