82 lines
1.6 KiB
C
82 lines
1.6 KiB
C
/*
|
|
* MOUSE driver interface
|
|
*
|
|
* Copyright 1998 Ulrich Weigand
|
|
*/
|
|
|
|
#ifndef __WINE_MOUSE_H
|
|
#define __WINE_MOUSE_H
|
|
|
|
#include "windef.h"
|
|
|
|
struct tagCURSORICONINFO;
|
|
|
|
#include "pshpack1.h"
|
|
typedef struct _MOUSEINFO
|
|
{
|
|
BYTE msExist;
|
|
BYTE msRelative;
|
|
WORD msNumButtons;
|
|
WORD msRate;
|
|
WORD msXThreshold;
|
|
WORD msYThreshold;
|
|
WORD msXRes;
|
|
WORD msYRes;
|
|
WORD msMouseCommPort;
|
|
} MOUSEINFO, *LPMOUSEINFO;
|
|
#include "poppack.h"
|
|
|
|
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;
|
|
|
|
extern 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
|
|
|
|
#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 */
|
|
|