summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_auto_shift.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-11-03 09:52:01 -0800
committerGitHub <noreply@github.com>2019-11-03 09:52:01 -0800
commite9c44e396d21df990b1d08e8b4c30e288797dffe (patch)
treedb2d0ac705fb1896553ae43bbd572a99ab270b1e /quantum/process_keycode/process_auto_shift.h
parent38353688f2cf2d077a0e16b9a3f2b054fffc74c0 (diff)
Smallish overhaul of Auto-Shift feature (#6067)
* Fix edge case when using One Shot Layer with Auto Shift, and it not triggering the cleanup * Remove junk code (no longer used) * Replace `(un)register_code` calls with `tap_code` where appropriate * Fixed up Switch check to be more readable (less verbose) * Simplified modifier check (if it comes back non-zero, there are mods) * Add additional function calls for autoshift settings * Made all variables static, since there are function calls to get their status * Fixed up documentation * Re-add special characters that were missed * formatting pass
Diffstat (limited to 'quantum/process_keycode/process_auto_shift.h')
-rw-r--r--quantum/process_keycode/process_auto_shift.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/quantum/process_keycode/process_auto_shift.h b/quantum/process_keycode/process_auto_shift.h
index 083325d8e3..e86c4658e9 100644
--- a/quantum/process_keycode/process_auto_shift.h
+++ b/quantum/process_keycode/process_auto_shift.h
@@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef PROCESS_AUTO_SHIFT_H
-#define PROCESS_AUTO_SHIFT_H
+#pragma once
#include "quantum.h"
@@ -25,9 +24,9 @@
bool process_auto_shift(uint16_t keycode, keyrecord_t *record);
-void autoshift_enable(void);
-void autoshift_disable(void);
-void autoshift_toggle(void);
-bool autoshift_state(void);
-
-#endif
+void autoshift_enable(void);
+void autoshift_disable(void);
+void autoshift_toggle(void);
+bool get_autoshift_state(void);
+uint16_t get_autoshift_timeout(void);
+void set_autoshift_timeout(uint16_t timeout);