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