aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.h
diff options
context:
space:
mode:
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