summaryrefslogtreecommitdiff
path: root/quantum/pointing_device/pointing_device_auto_mouse.h
diff options
context:
space:
mode:
authorMarcel Robitaille <marcelrobitaille11@gmail.com>2024-01-09 05:16:50 -0500
committerGitHub <noreply@github.com>2024-01-09 21:16:50 +1100
commitce05dc6fa1ff0d508af1e5e79eeeb6359736df51 (patch)
tree092ad763645f001677f13d202f76ff597b86ae42 /quantum/pointing_device/pointing_device_auto_mouse.h
parent66050bb809b2e173dbcf5ae59f81ed127b193df0 (diff)
Add option for auto mouse movement threshold (#21398)
Fixes #21396
Diffstat (limited to 'quantum/pointing_device/pointing_device_auto_mouse.h')
-rw-r--r--quantum/pointing_device/pointing_device_auto_mouse.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/pointing_device/pointing_device_auto_mouse.h b/quantum/pointing_device/pointing_device_auto_mouse.h
index 1343855e00..904f18b68e 100644
--- a/quantum/pointing_device/pointing_device_auto_mouse.h
+++ b/quantum/pointing_device/pointing_device_auto_mouse.h
@@ -42,9 +42,18 @@
#ifndef AUTO_MOUSE_DEBOUNCE
# define AUTO_MOUSE_DEBOUNCE 25
#endif
+#ifndef AUTO_MOUSE_THRESHOLD
+# define AUTO_MOUSE_THRESHOLD 10
+#endif
/* data structure */
typedef struct {
+ mouse_xy_report_t x;
+ mouse_xy_report_t y;
+ int8_t v;
+ int8_t h;
+} total_mouse_movement_t;
+typedef struct {
struct {
bool is_enabled;
uint8_t layer;
@@ -60,6 +69,7 @@ typedef struct {
bool is_toggled;
int8_t mouse_key_tracker;
} status;
+ total_mouse_movement_t total_mouse_movement;
} auto_mouse_context_t;
/* ----------Set up and control------------------------------------------------------------------------------ */