aboutsummaryrefslogtreecommitdiff
path: root/mousew16.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-11-21 01:03:23 +0100
committerJavier <dev.git@javispedro.com>2026-11-21 01:03:23 +0100
commit6385a546475e908adf01c0f53b57def1215a25ad (patch)
treecb2a17312c3e3d792f8e12e6653989ac7abbafea /mousew16.h
parent0950634f9afbcc753a6cbb21162df07f555785a0 (diff)
downloadvbados-6385a546475e908adf01c0f53b57def1215a25ad.tar.gz
vbados-6385a546475e908adf01c0f53b57def1215a25ad.zip
mousew16: move most wheel logic from interrupt handler into a hook
this is to reduce time spend in interrupt as well as reduce number of windows api calls during interrupt time
Diffstat (limited to 'mousew16.h')
-rw-r--r--mousew16.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mousew16.h b/mousew16.h
index 54b262f..5dbb8f8 100644
--- a/mousew16.h
+++ b/mousew16.h
@@ -50,4 +50,18 @@ typedef MOUSEINFO __far *LPMOUSEINFO;
typedef void (__far *LPFN_MOUSEEVENT)(unsigned short Status, short deltaX, short deltaY, short ButtonCount, short extra1, short extra2);
#pragma aux MOUSEEVENTPROC parm [ax] [bx] [cx] [dx] [di] [si]
+/* Special defines for wheel usage. */
+
+#ifndef WHEEL_DELTA
+#define WHEEL_DELTA 120
+#endif
+
+#ifndef WHEEL_PAGESCROLL
+#define WHEEL_PAGESCROLL UINT_MAX
+#endif
+
+#ifndef MSH_MOUSEWHEEL
+#define MSH_MOUSEWHEEL "MSWHEEL_ROLLMSG"
+#endif
+
#endif