aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/helpers/joycon_protocol/generic_functions.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-01-26 11:21:04 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2023-01-26 11:21:04 -0600
commit49707916db500e8225676a4caa4109f69d25faf3 (patch)
tree83aa03583c1a62fe0e86bfdb44e9e11b7d480a0d /src/input_common/helpers/joycon_protocol/generic_functions.h
parentcc821bfae1b02ec3e86b85097f71a2e38c12f8a5 (diff)
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 239bb7dbf9..424831e81b 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:
/// Enables active mode. This mode will return the current status every 5-15ms
DriverResult EnableActiveMode();
+ /// Enables or disables the low power mode
+ DriverResult SetLowPowerMode(bool enable);
+
+ /// Unknown function used by the switch
+ DriverResult TriggersElapsed();
+
/**
* Sends a request to obtain the joycon firmware and mac from handle
* @returns controller device info