1 | /*
|
---|
2 | * MOUSE driver interface
|
---|
3 | *
|
---|
4 | * Copyright 1998 Ulrich Weigand
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef __WINE_MOUSE_H
|
---|
8 | #define __WINE_MOUSE_H
|
---|
9 |
|
---|
10 | #include "windef.h"
|
---|
11 |
|
---|
12 | struct tagCURSORICONINFO;
|
---|
13 |
|
---|
14 | #include "pshpack1.h"
|
---|
15 | typedef struct _MOUSEINFO
|
---|
16 | {
|
---|
17 | BYTE msExist;
|
---|
18 | BYTE msRelative;
|
---|
19 | WORD msNumButtons;
|
---|
20 | WORD msRate;
|
---|
21 | WORD msXThreshold;
|
---|
22 | WORD msYThreshold;
|
---|
23 | WORD msXRes;
|
---|
24 | WORD msYRes;
|
---|
25 | WORD msMouseCommPort;
|
---|
26 | } MOUSEINFO, *LPMOUSEINFO;
|
---|
27 | #include "poppack.h"
|
---|
28 |
|
---|
29 | typedef BOOL (* CALLBACK LPMOUSE_EVENT_PROC)(DWORD,DWORD,DWORD,DWORD,DWORD);
|
---|
30 |
|
---|
31 | WORD WINAPI MOUSE_Inquire(LPMOUSEINFO lpMouseInfo);
|
---|
32 | VOID WINAPI MOUSE_Enable(LPMOUSE_EVENT_PROC lpMouseEventProc);
|
---|
33 | VOID WINAPI MOUSE_Disable(VOID);
|
---|
34 |
|
---|
35 | /* Wine internals */
|
---|
36 |
|
---|
37 | typedef struct tagMOUSE_DRIVER {
|
---|
38 | VOID (*pSetCursor)(struct tagCURSORICONINFO *);
|
---|
39 | VOID (*pMoveCursor)(WORD, WORD);
|
---|
40 | BOOL (*pEnableWarpPointer)(BOOL);
|
---|
41 | } MOUSE_DRIVER;
|
---|
42 |
|
---|
43 | extern MOUSE_DRIVER *MOUSE_Driver;
|
---|
44 |
|
---|
45 | #define WINE_MOUSEEVENT_MAGIC ( ('M'<<24)|('A'<<16)|('U'<<8)|'S' )
|
---|
46 | typedef struct _WINE_MOUSEEVENT
|
---|
47 | {
|
---|
48 | DWORD magic;
|
---|
49 | DWORD keyState;
|
---|
50 | DWORD time;
|
---|
51 | HWND hWnd;
|
---|
52 |
|
---|
53 | } WINE_MOUSEEVENT;
|
---|
54 |
|
---|
55 | void MOUSE_SendEvent( DWORD mouseStatus, DWORD posX, DWORD posY,
|
---|
56 | DWORD keyState, DWORD time, HWND hWnd );
|
---|
57 |
|
---|
58 | /***********************************
|
---|
59 | * MouseWheel support (defines)
|
---|
60 | */
|
---|
61 |
|
---|
62 | #define MSH_MOUSEWHEEL "MSWHEEL_ROLLMSG"
|
---|
63 |
|
---|
64 | #define WHEEL_DELTA 120
|
---|
65 |
|
---|
66 | #ifndef WM_MOUSEWHEEL
|
---|
67 | #define WM_MOUSEWHEEL (WM_MOUSELAST+1)
|
---|
68 | #endif
|
---|
69 |
|
---|
70 | #define MOUSEZ_CLASSNAME "MouseZ"
|
---|
71 | #define MOUSEZ_TITLE "Magellan MSWHEEL"
|
---|
72 |
|
---|
73 | #define MSH_WHEELMODULE_CLASS (MOUSEZ_CLASSNAME)
|
---|
74 | #define MSH_WHEELMODULE_TITLE (MOUSEZ_TITLE)
|
---|
75 |
|
---|
76 | #define MSH_WHEELSUPPORT "MSH_WHEELSUPPORT_MSG"
|
---|
77 |
|
---|
78 | #define MSH_SCROLL_LINES "MSH_SCROLL_LINES_MSG"
|
---|
79 |
|
---|
80 | #ifndef WHEEL_PAGESCROLL
|
---|
81 | #define WHEEL_PAGESCROLL (UINT_MAX)
|
---|
82 | #endif
|
---|
83 |
|
---|
84 | #ifndef SPI_SETWHEELSCROLLLINES
|
---|
85 | #define SPI_SETWHEELSCROLLLINES 105
|
---|
86 | #endif
|
---|
87 |
|
---|
88 |
|
---|
89 | /* MouseWheel support
|
---|
90 | ***********************************/
|
---|
91 |
|
---|
92 | #endif /* __WINE_MOUSE_H */
|
---|
93 |
|
---|