diff options
| author | Javier <dev.git@javispedro.com> | 2026-11-22 01:26:46 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-11-22 01:26:46 +0100 |
| commit | 6c2ceaba02331c433fdf5db4753007ed4e597230 (patch) | |
| tree | 38444c1f7bca67afb7b8aec037c8f2e9dac696c9 /mousew16.h | |
| parent | 5e7e961a048fd3a4d58cecf866bc9714f35c192b (diff) | |
| download | vbados-6c2ceaba02331c433fdf5db4753007ed4e597230.tar.gz vbados-6c2ceaba02331c433fdf5db4753007ed4e597230.zip | |
mousew16: turns out win3.x does support middle button, so pass it through in the driver
Diffstat (limited to 'mousew16.h')
| -rw-r--r-- | mousew16.h | 48 |
1 files changed, 22 insertions, 26 deletions
@@ -27,18 +27,28 @@ typedef _Packed struct MOUSEINFO } MOUSEINFO; typedef MOUSEINFO __far *LPMOUSEINFO; -/** Movement occurred. */ -#define SF_MOVEMENT 0x0001 -/** Button 1 changed to down. */ -#define SF_B1_DOWN 0x0002 -/** Button 1 changed to up. */ -#define SF_B1_UP 0x0004 -/** Button 2 changed to down. */ -#define SF_B2_DOWN 0x0008 -/** Button 2 changed to up. */ -#define SF_B2_UP 0x0010 -/** Event coordinates are absolute instead of relative. */ -#define SF_ABSOLUTE 0x8000 +/** Status flag when posting mouse events to Windows (mouse_event func). */ +enum MOUSESTATUSFLAGS { + /** Movement occurred. */ + SF_MOVEMENT = 0x0001, + /** Button 1 changed to down. */ + SF_B1_DOWN = 0x0002, + /** Button 1 changed to up. */ + SF_B1_UP = 0x0004, + /** Button 2 changed to down. */ + SF_B2_DOWN = 0x0008, + /** Button 2 changed to up. */ + SF_B2_UP = 0x0010, + /** Event coordinates are absolute instead of relative. */ + SF_ABSOLUTE = 0x8000, + + // The following may only work with win95 up. + /** Button 3 changed to down. */ + SF_B3_DOWN = 0x0020, + /** Button 3 changed to up. */ + SF_B3_UP = 0x0040, +}; + /** Driver should call this callback when there are new mouse events to report. * @param Status What happened. Combination of SF_MOVEMENT, SF_ABSOLUTE, etc. @@ -50,18 +60,4 @@ 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 |
