mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
a396029270
standard Windows names.
82 lines
1.7 KiB
C
82 lines
1.7 KiB
C
/*
|
|
* MOUSE driver interface
|
|
*
|
|
* Copyright 1998 Ulrich Weigand
|
|
*/
|
|
|
|
#ifndef __WINE_MOUSE_H
|
|
#define __WINE_MOUSE_H
|
|
|
|
#pragma pack(1)
|
|
typedef struct _MOUSEINFO
|
|
{
|
|
BYTE msExist;
|
|
BYTE msRelative;
|
|
WORD msNumButtons;
|
|
WORD msRate;
|
|
WORD msXThreshold;
|
|
WORD msYThreshold;
|
|
WORD msXRes;
|
|
WORD msYRes;
|
|
WORD msMouseCommPort;
|
|
} MOUSEINFO, *LPMOUSEINFO;
|
|
#pragma pack(4)
|
|
|
|
typedef VOID (CALLBACK *LPMOUSE_EVENT_PROC)(DWORD,DWORD,DWORD,DWORD,DWORD);
|
|
|
|
WORD WINAPI MOUSE_Inquire(LPMOUSEINFO lpMouseInfo);
|
|
VOID WINAPI MOUSE_Enable(LPMOUSE_EVENT_PROC lpMouseEventProc);
|
|
VOID WINAPI MOUSE_Disable(VOID);
|
|
|
|
/* Wine internals */
|
|
|
|
#define WINE_MOUSEEVENT_MAGIC ( ('M'<<24)|('A'<<16)|('U'<<8)|'S' )
|
|
typedef struct _WINE_MOUSEEVENT
|
|
{
|
|
DWORD magic;
|
|
DWORD keyState;
|
|
DWORD time;
|
|
HWND hWnd;
|
|
|
|
} WINE_MOUSEEVENT;
|
|
|
|
void MOUSE_SendEvent( DWORD mouseStatus, DWORD posX, DWORD posY,
|
|
DWORD keyState, DWORD time, HWND hWnd );
|
|
|
|
/***********************************
|
|
* MouseWheel support (defines)
|
|
*/
|
|
|
|
#define MSH_MOUSEWHEEL "MSWHEEL_ROLLMSG"
|
|
|
|
#define WHEEL_DELTA 120
|
|
|
|
#ifndef WM_MOUSEWHEEL
|
|
#define WM_MOUSEWHEEL (WM_MOUSELAST+1)
|
|
#endif
|
|
|
|
#define MOUSEZ_CLASSNAME "MouseZ"
|
|
#define MOUSEZ_TITLE "Magellan MSWHEEL"
|
|
|
|
#define MSH_WHEELMODULE_CLASS (MOUSEZ_CLASSNAME)
|
|
#define MSH_WHEELMODULE_TITLE (MOUSEZ_TITLE)
|
|
|
|
#define MSH_WHEELSUPPORT "MSH_WHEELSUPPORT_MSG"
|
|
|
|
#define MSH_SCROLL_LINES "MSH_SCROLL_LINES_MSG"
|
|
|
|
#ifndef WHEEL_PAGESCROLL
|
|
#define WHEEL_PAGESCROLL (UINT_MAX)
|
|
#endif
|
|
|
|
#ifndef SPI_SETWHEELSCROLLLINES
|
|
#define SPI_SETWHEELSCROLLLINES 105
|
|
#endif
|
|
|
|
|
|
/* MouseWheel support
|
|
***********************************/
|
|
|
|
#endif /* __WINE_MOUSE_H */
|
|
|