1
0
Fork 0

Add option for auto mouse movement threshold (#21398)

Fixes #21396
This commit is contained in:
Marcel Robitaille 2024-01-09 05:16:50 -05:00 committed by GitHub
parent 66050bb809
commit ce05dc6fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

View file

@ -42,8 +42,17 @@
#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;
@ -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------------------------------------------------------------------------------ */