diff options
| author | Javier <dev.git@javispedro.com> | 2026-11-21 01:03:23 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-11-21 01:03:23 +0100 |
| commit | 6385a546475e908adf01c0f53b57def1215a25ad (patch) | |
| tree | cb2a17312c3e3d792f8e12e6653989ac7abbafea /mousew16.h | |
| parent | 0950634f9afbcc753a6cbb21162df07f555785a0 (diff) | |
| download | vbados-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.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |
