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
26 #include "wine/winbase16.h"
29 typedef struct _MOUSEINFO
40 } MOUSEINFO
, *LPMOUSEINFO
;
43 static FARPROC16 DefMouseEventProc
;
45 /***********************************************************************
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 /***********************************************************************
66 VOID WINAPI
MOUSE_Enable( FARPROC16 proc
)
68 DefMouseEventProc
= proc
;
71 /***********************************************************************
74 VOID WINAPI
MOUSE_Disable(VOID
)
76 DefMouseEventProc
= 0;