From 0c2b1b6a5d80f2dd5f03e73efa52d6a921f1f98c Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 1 Mar 2026 18:00:45 +0100 Subject: add initial support for emulating left/right arrow keys from horizontal wheel --- mousetsr.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mousetsr.h') diff --git a/mousetsr.h b/mousetsr.h index 05b2f24..f33dc11 100644 --- a/mousetsr.h +++ b/mousetsr.h @@ -90,6 +90,11 @@ struct point { int16_t x, y; }; +enum { + WHEEL_DIR_UP, + WHEEL_DIR_DOWN +}; + typedef struct tsrdata { // TSR installation data /** Previous int33 ISR, storing it for uninstall. */ @@ -101,8 +106,8 @@ typedef struct tsrdata { #if USE_WHEEL /** Whether to enable & use wheel mouse. */ bool usewheel; - /** Key (scancode) to generate on wheel scroll up/down, or 0 for none. */ - uint8_t wheel_up_key, wheel_down_key; + /** Scancode to generate on wheel N scroll up [N][0] or down [N][1]. 0 for none. */ + uint8_t wheel_key[MAX_WHEELS][2]; #endif // Video settings -- cgit v1.2.3