Silence some warnings due to casts between pointer and integers of
[wine/multimedia.git] / dlls / user / mouse.c
blob7d5b3c5e509442a330d34bd81340f84e8f96a7db
1 /*
2 * MOUSE driver
4 * Copyright 1998 Ulrich Weigand
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include <string.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winuser.h"
26 #include "wine/winbase16.h"
28 #include "pshpack1.h"
29 typedef struct _MOUSEINFO
31 BYTE msExist;
32 BYTE msRelative;
33 WORD msNumButtons;
34 WORD msRate;
35 WORD msXThreshold;
36 WORD msYThreshold;
37 WORD msXRes;
38 WORD msYRes;
39 WORD msMouseCommPort;
40 } MOUSEINFO, *LPMOUSEINFO;
41 #include "poppack.h"
43 static FARPROC16 DefMouseEventProc;
45 /***********************************************************************
46 * Inquire (MOUSE.1)
48 WORD WINAPI MOUSE_Inquire(LPMOUSEINFO mouseInfo)
50 mouseInfo->msExist = TRUE;
51 mouseInfo->msRelative = FALSE;
52 mouseInfo->msNumButtons = 2;
53 mouseInfo->msRate = 34; /* the DDK says so ... */
54 mouseInfo->msXThreshold = 0;
55 mouseInfo->msYThreshold = 0;
56 mouseInfo->msXRes = 0;
57 mouseInfo->msYRes = 0;
58 mouseInfo->msMouseCommPort = 0;
60 return sizeof(MOUSEINFO);
63 /***********************************************************************
64 * Enable (MOUSE.2)
66 VOID WINAPI MOUSE_Enable( FARPROC16 proc )
68 DefMouseEventProc = proc;
71 /***********************************************************************
72 * Disable (MOUSE.3)
74 VOID WINAPI MOUSE_Disable(VOID)
76 DefMouseEventProc = 0;