ReactOS  0.4.13-dev-249-gcba1a2f
dinput_private.h
Go to the documentation of this file.
1 /*
2  * Copyright 2000 Lionel Ulmer
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #ifndef __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H
20 #define __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H
21 
22 #include <stdarg.h>
23 
24 #include "windef.h"
25 #include "winbase.h"
26 #include "dinput.h"
27 #include "dinputd.h"
28 #include "wine/list.h"
29 
31 
32 /* Implementation specification */
35 {
36  IDirectInput7A IDirectInput7A_iface;
37  IDirectInput7W IDirectInput7W_iface;
38  IDirectInput8A IDirectInput8A_iface;
39  IDirectInput8W IDirectInput8W_iface;
40  IDirectInputJoyConfig8 IDirectInputJoyConfig8_iface;
41 
43 
46  struct list entry; /* entry into list of all IDirectInputs */
47 
48  DWORD evsequence; /* unique sequence number for events */
49  DWORD dwVersion; /* direct input version number */
50  struct list devices_list; /* list of all created dinput devices */
51  struct list device_players; /* device instance guid to player name */
52 };
53 
54 /* Function called by all devices that Wine supports */
55 struct dinput_device {
56  const char *name;
59  HRESULT (*create_device)(IDirectInputImpl *dinput, REFGUID rguid, REFIID riid, LPVOID *pdev, int unicode);
60 };
61 
62 struct DevicePlayer {
65  struct list entry;
66 };
67 
68 extern const struct dinput_device mouse_device DECLSPEC_HIDDEN;
73 
75 extern void check_dinput_events(void) DECLSPEC_HIDDEN;
77 
80 
81 extern HRESULT _configure_devices(IDirectInput8W *iface, LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSW lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) DECLSPEC_HIDDEN;
82 
84 
85 #define IS_DIPROP(x) (((ULONG_PTR)(x) >> 16) == 0)
86 
87 #define DIKEYBOARD_MASK 0x81000000
88 #define DIMOUSE_MASK 0x82000000
89 #define DIGENRE_ANY 0xFF000000
90 
91 #endif /* __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H */
#define HRESULT
Definition: msvc.h:9
IDirectInput8W IDirectInput8W_iface
#define REFIID
Definition: guiddef.h:113
HRESULT(* enum_deviceW)(DWORD dwDevType, DWORD dwFlags, LPDIDEVICEINSTANCEW lpddi, DWORD version, int id)
Definition: scsiwmi.h:51
REFIID riid
Definition: precomp.h:44
WCHAR username[MAX_PATH]
void _copy_diactionformatAtoW(LPDIACTIONFORMATW, LPDIACTIONFORMATA) DECLSPEC_HIDDEN
Definition: dinput_main.c:323
HRESULT(* create_device)(IDirectInputImpl *dinput, REFGUID rguid, REFIID riid, LPVOID *pdev, int unicode)
HRESULT _configure_devices(IDirectInput8W *iface, LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSW lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) DECLSPEC_HIDDEN
Definition: config.c:441
struct list devices_list
UINT_PTR WPARAM
Definition: windef.h:207
struct list entry
struct list device_players
IDirectInput7W IDirectInput7W_iface
WCHAR * get_mapping_path(const WCHAR *device, const WCHAR *username) DECLSPEC_HIDDEN
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
Definition: devices.h:37
const struct dinput_device keyboard_device
Definition: keyboard.c:349
void check_dinput_hooks(LPDIRECTINPUTDEVICE8W, BOOL) DECLSPEC_HIDDEN
Definition: dinput_main.c:1833
const struct dinput_device mouse_device DECLSPEC_HIDDEN
static const WCHAR version[]
Definition: asmname.c:64
LONG_PTR LPARAM
Definition: windef.h:208
struct list entry
static WCHAR username[]
Definition: url.c:32
int(* DI_EVENT_PROC)(LPDIRECTINPUTDEVICE8A, WPARAM, LPARAM)
void _copy_diactionformatWtoA(LPDIACTIONFORMATA, LPDIACTIONFORMATW) DECLSPEC_HIDDEN
Definition: dinput_main.c:350
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define MAX_PATH
Definition: compat.h:26
unsigned long DWORD
Definition: ntddk_ex.h:95
IDirectInput8A IDirectInput8A_iface
HRESULT(* enum_deviceA)(DWORD dwDevType, DWORD dwFlags, LPDIDEVICEINSTANCEA lpddi, DWORD version, int id)
void check_dinput_events(void) DECLSPEC_HIDDEN
Definition: dinput_main.c:1870
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
Definition: _list.h:228
const struct dinput_device joystick_linuxinput_device
CRITICAL_SECTION crit
struct IDirectInputDevice8W * LPDIRECTINPUTDEVICE8W
Definition: dinput.h:106
const struct dinput_device joystick_osx_device
IDirectInput7A IDirectInput7A_iface
BOOL(CALLBACK * LPDICONFIGUREDEVICESCALLBACK)(LPUNKNOWN, LPVOID)
Definition: dinput.h:462
struct IDirectInputDevice8A * LPDIRECTINPUTDEVICE8A
Definition: dinput.h:105
HINSTANCE DINPUT_instance
Definition: dinput_main.c:96
GLenum GLuint id
Definition: glext.h:5579
const struct dinput_device mouse_device
Definition: mouse.c:298
const char * name
IDirectInputJoyConfig8 IDirectInputJoyConfig8_iface
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
const struct dinput_device joystick_linux_device