1 /** \file   joy-win32-dinput-handle.h
2  * \brief   Functionality shared by DirectInput joystick and mouse drivers - header
3  *
4  * \author  Fabrizio Gennari <fabrizio.ge@tiscali.it>
5  */
6 
7 /*
8  * This file is part of VICE, the Versatile Commodore Emulator.
9  * See README for copyright notice.
10  *
11  *  This program is free software; you can redistribute it and/or modify
12  *  it under the terms of the GNU General Public License as published by
13  *  the Free Software Foundation; either version 2 of the License, or
14  *  (at your option) any later version.
15  *
16  *  This program is distributed in the hope that it will be useful,
17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *  GNU General Public License for more details.
20  *
21  *  You should have received a copy of the GNU General Public License
22  *  along with this program; if not, write to the Free Software
23  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24  *  02111-1307  USA.
25  *
26  */
27 #ifndef DINPUT_HANDLE_H
28 #define DINPUT_HANDLE_H
29 
30 #include "vice.h"
31 
32 #ifdef HAVE_DINPUT
33 #define DIRECTINPUT_VERSION 0x0500
34 #include <dinput.h>
35 
36 /* not defined in DirectInput headers prior to 8 */
37 #ifndef DIDFT_OPTIONAL
38 #define DIDFT_OPTIONAL 0x80000000
39 #endif
40 
41 LPDIRECTINPUT get_directinput_handle(void);
42 #endif
43 
44 #endif
45