aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2024-05-20 15:39:10 +0200
committerJavier <dev.git@javispedro.com>2024-05-20 15:39:10 +0200
commit802e8f3d32a4a497538431863a3ab178543815b6 (patch)
treecb0654c7232cfad6866b77db4fcb7a6337125f4c /mousetsr.h
parentf71b20f8fb12f28fc2c05f9f14e14fba5daa521c (diff)
downloadvbados-802e8f3d32a4a497538431863a3ab178543815b6.tar.gz
vbados-802e8f3d32a4a497538431863a3ab178543815b6.zip
don't clobber si on int33/3 calls, this breaks qbasic.com
Diffstat (limited to 'mousetsr.h')
-rw-r--r--mousetsr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mousetsr.h b/mousetsr.h
index 5f98333..5625ae1 100644
--- a/mousetsr.h
+++ b/mousetsr.h
@@ -63,7 +63,13 @@
#define MAX_BUTTONS 5
/** Maximum number of wheels supported. */
+#if USE_IMEX
#define MAX_WHEELS 2
+#elif USE_WHEEL
+#define MAX_WHEELS 1
+#else
+#define MAX_WHEELS 0
+#endif
/** Size of int33 graphic cursor shape definitions. */
#define GRAPHIC_CURSOR_WIDTH 16