aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-03-01 18:00:45 +0100
committerJavier <dev.git@javispedro.com>2026-03-01 18:00:45 +0100
commit0c2b1b6a5d80f2dd5f03e73efa52d6a921f1f98c (patch)
treebdbb136ca398ed75d3601725331086bbd92eeb9c /mousetsr.h
parent58fe8e22096863f86b2916dd388401f7afc1d26c (diff)
downloadvbados-0c2b1b6a5d80f2dd5f03e73efa52d6a921f1f98c.tar.gz
vbados-0c2b1b6a5d80f2dd5f03e73efa52d6a921f1f98c.zip
add initial support for emulating left/right arrow keys from horizontal wheelHEADmaster
Diffstat (limited to 'mousetsr.h')
-rw-r--r--mousetsr.h9
1 files changed, 7 insertions, 2 deletions
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