ReactOS  0.4.14-dev-614-gbfd8a84
device_private.h
Go to the documentation of this file.
1 /*
2  * Copyright 2000 Lionel Ulmer
3  * Copyright 2000-2001 TransGaming Technologies Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19 
20 #ifndef __WINE_DLLS_DINPUT_DINPUTDEVICE_PRIVATE_H
21 #define __WINE_DLLS_DINPUT_DINPUTDEVICE_PRIVATE_H
22 
23 #include <stdarg.h>
24 
25 #include "windef.h"
26 #include "winbase.h"
27 #include "dinput.h"
28 #include "wine/list.h"
29 #include "dinput_private.h"
30 
31 typedef struct
32 {
33  int size;
34  int offset_in;
36  int value;
38 
39 typedef struct
40 {
41  int size;
44 
45  int *offsets; /* object offsets */
46  LPDIDATAFORMAT wine_df; /* wine internal data format */
47  LPDIDATAFORMAT user_df; /* user defined data format */
48 } DataFormat;
49 
50 typedef struct
51 {
52  unsigned int offset;
54 } ActionMap;
55 
56 /* Device implementation */
59 {
60  IDirectInputDevice8A IDirectInputDevice8A_iface;
61  IDirectInputDevice8W IDirectInputDevice8W_iface;
66  struct list entry; /* entry into IDirectInput devices list */
70  int acquired;
71  DI_EVENT_PROC event_proc; /* function to receive mouse & keyboard events */
72 
73  LPDIDEVICEOBJECTDATA data_queue; /* buffer for 'GetDeviceData'. */
74  int queue_len; /* size of the queue - set in 'SetProperty' */
75  int queue_head; /* position to write new event into queue */
76  int queue_tail; /* next event to read from queue */
77  BOOL overflow; /* return DI_BUFFEROVERFLOW in 'GetDeviceData' */
78 
79  DataFormat data_format; /* user data format and wine to user format converter */
80 
81  /* Action mapping */
82  int num_actions; /* number of actions mapped */
83  ActionMap *action_map; /* array of mappings */
84 };
85 
87 extern DWORD get_config_key(HKEY, HKEY, const char*, char*, DWORD) DECLSPEC_HIDDEN;
88 
89 /* Routines to do DataFormat / WineFormat conversions */
90 extern void fill_DataFormat(void *out, DWORD size, const void *in, const DataFormat *df) DECLSPEC_HIDDEN;
92 extern void queue_event(LPDIRECTINPUTDEVICE8A iface, int inst_id, DWORD data, DWORD time, DWORD seq) DECLSPEC_HIDDEN;
93 /* Helper functions to work with data format */
94 extern int id_to_object(LPCDIDATAFORMAT df, int id) DECLSPEC_HIDDEN;
96 
97 /* Common joystick stuff */
98 typedef struct
99 {
106 } ObjProps;
107 
110 
111 typedef struct
112 {
113  struct list entry;
116 
118 
119 /* Various debug tools */
123 extern void _dump_DIDATAFORMAT(const DIDATAFORMAT *df) DECLSPEC_HIDDEN;
124 extern const char *_dump_dinput_GUID(const GUID *guid) DECLSPEC_HIDDEN;
125 
127 
128 extern HRESULT save_mapping_settings(IDirectInputDevice8W *iface, LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUsername) DECLSPEC_HIDDEN;
130 
133 
134 /* And the stubs */
152  LPDIRECTINPUTDEVICE8A iface,
154  LPVOID lpvRef,
157  LPDIRECTINPUTDEVICE8W iface,
159  LPVOID lpvRef,
166  LPDIRECTINPUTDEVICE8A iface,
168  DWORD dwObj,
169  DWORD dwHow) DECLSPEC_HIDDEN;
172  DWORD dwObj,
173  DWORD dwHow) DECLSPEC_HIDDEN;
181  REFGUID rguid) DECLSPEC_HIDDEN;
183  REFGUID rguid) DECLSPEC_HIDDEN;
185  LPDIRECTINPUTEFFECT *ppdef, LPUNKNOWN pUnkOuter) DECLSPEC_HIDDEN;
187  LPDIRECTINPUTEFFECT *ppdef, LPUNKNOWN pUnkOuter) DECLSPEC_HIDDEN;
189  LPDIRECTINPUTDEVICE8A iface,
190  LPDIENUMEFFECTSCALLBACKA lpCallback,
191  LPVOID lpvRef,
194  LPDIRECTINPUTDEVICE8W iface,
195  LPDIENUMEFFECTSCALLBACKW lpCallback,
196  LPVOID lpvRef,
199  LPDIRECTINPUTDEVICE8A iface,
200  LPDIEFFECTINFOA lpdei,
201  REFGUID rguid) DECLSPEC_HIDDEN;
203  LPDIRECTINPUTDEVICE8W iface,
204  LPDIEFFECTINFOW lpdei,
205  REFGUID rguid) DECLSPEC_HIDDEN;
225  LPCSTR lpszFileName,
227  LPVOID pvRef,
230  LPCWSTR lpszFileName,
232  LPVOID pvRef,
235  LPCSTR lpszFileName,
236  DWORD dwEntries,
237  LPDIFILEEFFECT rgDiFileEft,
240  LPCWSTR lpszFileName,
241  DWORD dwEntries,
242  LPDIFILEEFFECT rgDiFileEft,
245  LPDIACTIONFORMATW lpdiaf,
246  LPCWSTR lpszUserName,
249  LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader) DECLSPEC_HIDDEN;
251  LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader) DECLSPEC_HIDDEN;
252 
253 #endif /* __WINE_DLLS_DINPUT_DINPUTDEVICE_PRIVATE_H */
HRESULT WINAPI IDirectInputDevice2AImpl_RunControlPanel(LPDIRECTINPUTDEVICE8A iface, HWND hwndOwner, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1700
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HRESULT WINAPI IDirectInputDevice2WImpl_Escape(LPDIRECTINPUTDEVICE8W iface, LPDIEFFESCAPE lpDIEEsc) DECLSPEC_HIDDEN
Definition: device.c:1828
#define REFIID
Definition: guiddef.h:118
ULONG WINAPI IDirectInputDevice2WImpl_AddRef(LPDIRECTINPUTDEVICE8W iface) DECLSPEC_HIDDEN
Definition: device.c:1308
HRESULT _build_action_map(LPDIRECTINPUTDEVICE8W iface, LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags, DWORD devMask, LPCDIDATAFORMAT df) DECLSPEC_HIDDEN
Definition: device.c:791
HRESULT WINAPI IDirectInputDevice2AImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface, DWORD dodsize, LPDIDEVICEOBJECTDATA dod, LPDWORD entries, DWORD flags) DECLSPEC_HIDDEN
Definition: device.c:1685
Definition: scsiwmi.h:51
HRESULT WINAPI IDirectInputDevice2AImpl_Escape(LPDIRECTINPUTDEVICE8A iface, LPDIEFFESCAPE lpDIEEsc) DECLSPEC_HIDDEN
Definition: device.c:1835
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(LPDIRECTINPUTDEVICE8W iface, REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN
Definition: device.c:1273
BOOL(CALLBACK * LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFECT, LPVOID)
Definition: dinput.h:468
HRESULT WINAPI IDirectInputDevice2AImpl_SendDeviceData(LPDIRECTINPUTDEVICE8A iface, DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1867
HRESULT WINAPI IDirectInputDevice2WImpl_EnumObjects(LPDIRECTINPUTDEVICE8W iface, LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID lpvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1352
BOOL get_app_key(HKEY *, HKEY *) DECLSPEC_HIDDEN
Definition: device.c:278
HRESULT WINAPI IDirectInputDevice2AImpl_SetCooperativeLevel(LPDIRECTINPUTDEVICE8A iface, HWND hwnd, DWORD dwflags) DECLSPEC_HIDDEN
Definition: device.c:1203
REFIID riid
Definition: precomp.h:44
HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(LPDIRECTINPUTDEVICE8A iface, REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN
Definition: device.c:1302
BOOL(CALLBACK * LPDIENUMDEVICEOBJECTSCALLBACKA)(LPCDIDEVICEOBJECTINSTANCEA, LPVOID)
Definition: dinput.h:464
HRESULT WINAPI IDirectInputDevice2AImpl_SendForceFeedbackCommand(LPDIRECTINPUTDEVICE8A iface, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1807
HRESULT WINAPI IDirectInputDevice7AImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8A iface, LPCSTR lpszFileName, DWORD dwEntries, LPDIFILEEFFECT rgDiFileEft, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1900
int internal_format_size
HRESULT WINAPI IDirectInputDevice2AImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, REFGUID rguid, LPCDIPROPHEADER pdiph) DECLSPEC_HIDDEN
Definition: device.c:1537
BOOL(CALLBACK * LPDIENUMEFFECTSCALLBACKA)(LPCDIEFFECTINFOA, LPVOID)
Definition: dinput.h:1148
BOOL(CALLBACK * LPDIENUMEFFECTSINFILECALLBACK)(LPCDIFILEEFFECT, LPVOID)
Definition: dinput.h:1258
void _dump_DIDATAFORMAT(const DIDATAFORMAT *df) DECLSPEC_HIDDEN
Definition: device.c:242
HRESULT WINAPI IDirectInputDevice2AImpl_EnumEffects(LPDIRECTINPUTDEVICE8A iface, LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID lpvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1743
GLdouble n
Definition: glext.h:7729
IDirectInputDevice8A IDirectInputDevice8A_iface
const GUID DInput_PIDVID_Product_GUID DECLSPEC_HIDDEN
BOOL(CALLBACK * LPDIENUMEFFECTSCALLBACKW)(LPCDIEFFECTINFOW, LPVOID)
Definition: dinput.h:1149
HRESULT WINAPI IDirectInputDevice2AImpl_CreateEffect(LPDIRECTINPUTDEVICE8A iface, REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdef, LPUNKNOWN pUnkOuter) DECLSPEC_HIDDEN
Definition: device.c:1736
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
LPDIOBJECTDATAFORMAT dataformat_to_odf_by_type(LPCDIDATAFORMAT df, int n, DWORD type) DECLSPEC_HIDDEN
Definition: device.c:412
HRESULT WINAPI IDirectInputDevice2WImpl_SendDeviceData(LPDIRECTINPUTDEVICE8W iface, DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1857
HRESULT WINAPI IDirectInputDevice2AImpl_SetEventNotification(LPDIRECTINPUTDEVICE8A iface, HANDLE hnd) DECLSPEC_HIDDEN
Definition: device.c:1224
HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(LPDIRECTINPUTDEVICE8W iface, LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) DECLSPEC_HIDDEN
Definition: device.c:1576
HRESULT WINAPI IDirectInputDevice2AImpl_GetForceFeedbackState(LPDIRECTINPUTDEVICE8A iface, LPDWORD pdwOut) DECLSPEC_HIDDEN
Definition: device.c:1794
__u16 time
Definition: mkdosfs.c:366
HRESULT WINAPI IDirectInputDevice2WImpl_Acquire(LPDIRECTINPUTDEVICE8W iface) DECLSPEC_HIDDEN
Definition: device.c:1076
HRESULT WINAPI IDirectInputDevice2WImpl_Poll(LPDIRECTINPUTDEVICE8W iface) DECLSPEC_HIDDEN
Definition: device.c:1841
HRESULT WINAPI IDirectInputDevice8AImpl_GetImageInfo(LPDIRECTINPUTDEVICE8A iface, LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader) DECLSPEC_HIDDEN
Definition: device.c:1941
HRESULT WINAPI IDirectInputDevice7WImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8W iface, LPCWSTR lpszFileName, DWORD dwEntries, LPDIFILEEFFECT rgDiFileEft, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1912
DWORD joystick_map_pov(const POINTL *p) DECLSPEC_HIDDEN
Definition: joystick.c:1024
IDirectInputImpl * dinput
LPDIDATAFORMAT wine_df
int find_property(const DataFormat *df, LPCDIPROPHEADER ph) DECLSPEC_HIDDEN
Definition: device.c:607
HRESULT WINAPI IDirectInputDevice2WImpl_Initialize(LPDIRECTINPUTDEVICE8W iface, HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) DECLSPEC_HIDDEN
Definition: device.c:1706
HRESULT WINAPI IDirectInputDevice2WImpl_GetDeviceData(LPDIRECTINPUTDEVICE8W iface, DWORD dodsize, LPDIDEVICEOBJECTDATA dod, LPDWORD entries, DWORD flags) DECLSPEC_HIDDEN
Definition: device.c:1629
const GUID * guid
ULONG WINAPI IDirectInputDevice2AImpl_Release(LPDIRECTINPUTDEVICE8A iface) DECLSPEC_HIDDEN
Definition: device.c:1267
HRESULT WINAPI IDirectInputDevice2WImpl_CreateEffect(LPDIRECTINPUTDEVICE8W iface, REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdef, LPUNKNOWN pUnkOuter) DECLSPEC_HIDDEN
Definition: device.c:1725
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
static LPUNKNOWN
Definition: ndr_ole.c:49
LPDIRECTINPUTEFFECT ref
BOOL(CALLBACK * LPDIENUMDEVICEOBJECTSCALLBACKW)(LPCDIDEVICEOBJECTINSTANCEW, LPVOID)
Definition: dinput.h:465
HRESULT WINAPI IDirectInputDevice2WImpl_GetEffectInfo(LPDIRECTINPUTDEVICE8W iface, LPDIEFFECTINFOW lpdei, REFGUID rguid) DECLSPEC_HIDDEN
Definition: device.c:1777
ULONG WINAPI IDirectInputDevice2AImpl_AddRef(LPDIRECTINPUTDEVICE8A iface) DECLSPEC_HIDDEN
Definition: device.c:1316
LPDIDEVICEOBJECTDATA data_queue
const char * _dump_dinput_GUID(const GUID *guid) DECLSPEC_HIDDEN
Definition: device.c:197
const char * LPCSTR
Definition: xmlstorage.h:183
HRESULT WINAPI IDirectInputDevice2AImpl_SetDataFormat(LPDIRECTINPUTDEVICE8A iface, LPCDIDATAFORMAT df) DECLSPEC_HIDDEN
Definition: device.c:1156
LONG lSaturation
HRESULT WINAPI IDirectInputDevice2WImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface, REFGUID rguid, LPDIPROPHEADER pdiph) DECLSPEC_HIDDEN
Definition: device.c:1386
HRESULT WINAPI IDirectInputDevice2AImpl_EnumObjects(LPDIRECTINPUTDEVICE8A iface, LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID lpvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1322
HRESULT WINAPI IDirectInputDevice2AImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface) DECLSPEC_HIDDEN
Definition: device.c:1125
GLuint GLfloat * val
Definition: glext.h:7180
const GUID DInput_PIDVID_Product_GUID
Definition: joystick.c:61
CRITICAL_SECTION crit
static WCHAR username[]
Definition: url.c:32
int(* DI_EVENT_PROC)(LPDIRECTINPUTDEVICE8A, WPARAM, LPARAM)
GLsizeiptr size
Definition: glext.h:5919
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
UINT_PTR uAppData
#define WINAPI
Definition: msvc.h:6
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
DataTransform * dt
HRESULT WINAPI IDirectInputDevice2AImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface, REFGUID rguid, LPDIPROPHEADER pdiph) DECLSPEC_HIDDEN
Definition: device.c:1440
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
struct IDirectInputEffect * LPDIRECTINPUTEFFECT
Definition: dinput.h:107
DWORD get_config_key(HKEY, HKEY, const char *, char *, DWORD) DECLSPEC_HIDDEN
Definition: device.c:313
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLbitfield flags
Definition: glext.h:7161
HRESULT WINAPI IDirectInputDevice2WImpl_EnumEffects(LPDIRECTINPUTDEVICE8W iface, LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID lpvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1755
HRESULT WINAPI IDirectInputDevice2AImpl_GetObjectInfo(LPDIRECTINPUTDEVICE8A iface, LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) DECLSPEC_HIDDEN
Definition: device.c:1544
ULONG WINAPI IDirectInputDevice2WImpl_Release(LPDIRECTINPUTDEVICE8W iface) DECLSPEC_HIDDEN
Definition: device.c:1231
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
void queue_event(LPDIRECTINPUTDEVICE8A iface, int inst_id, DWORD data, DWORD time, DWORD seq) DECLSPEC_HIDDEN
Definition: device.c:1025
uint32_t entry
Definition: isohybrid.c:63
Definition: _list.h:228
HRESULT WINAPI IDirectInputDevice2WImpl_RunControlPanel(LPDIRECTINPUTDEVICE8W iface, HWND hwndOwner, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1692
static _In_ DWORD dwflags
Definition: dispmode.c:64
LPDIDATAFORMAT user_df
HRESULT WINAPI IDirectInputDevice8WImpl_GetImageInfo(LPDIRECTINPUTDEVICE8W iface, LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader) DECLSPEC_HIDDEN
Definition: device.c:1950
HRESULT WINAPI IDirectInputDevice8WImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface, LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1924
HRESULT WINAPI IDirectInputDevice2WImpl_SetCooperativeLevel(LPDIRECTINPUTDEVICE8W iface, HWND hwnd, DWORD dwflags) DECLSPEC_HIDDEN
Definition: device.c:1167
HRESULT WINAPI IDirectInputDevice2AImpl_Poll(LPDIRECTINPUTDEVICE8A iface) DECLSPEC_HIDDEN
Definition: device.c:1851
DI_EVENT_PROC event_proc
struct IDirectInputDevice8W * LPDIRECTINPUTDEVICE8W
Definition: dinput.h:106
void _dump_OBJECTINSTANCEA(const DIDEVICEOBJECTINSTANCEA *ddoi) DECLSPEC_HIDDEN
Definition: device.c:186
void fill_DataFormat(void *out, DWORD size, const void *in, const DataFormat *df) DECLSPEC_HIDDEN
Definition: device.c:326
BOOL load_mapping_settings(IDirectInputDeviceImpl *This, LPDIACTIONFORMATW lpdiaf, const WCHAR *username) DECLSPEC_HIDDEN
Definition: device.c:740
GLuint in
Definition: glext.h:9616
HRESULT WINAPI IDirectInputDevice7AImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8A iface, LPCSTR lpszFileName, LPDIENUMEFFECTSINFILECALLBACK pec, LPVOID pvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1876
HRESULT WINAPI IDirectInputDevice2AImpl_EnumCreatedEffectObjects(LPDIRECTINPUTDEVICE8A iface, LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID lpvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1821
HRESULT WINAPI IDirectInputDevice2WImpl_EnumCreatedEffectObjects(LPDIRECTINPUTDEVICE8W iface, LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID lpvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1813
HRESULT WINAPI IDirectInputDevice2WImpl_SetEventNotification(LPDIRECTINPUTDEVICE8W iface, HANDLE hnd) DECLSPEC_HIDDEN
Definition: device.c:1212
LONG joystick_map_axis(ObjProps *props, int val) DECLSPEC_HIDDEN
Definition: joystick.c:985
HRESULT WINAPI IDirectInputDevice2WImpl_GetForceFeedbackState(LPDIRECTINPUTDEVICE8W iface, LPDWORD pdwOut) DECLSPEC_HIDDEN
Definition: device.c:1787
void _dump_OBJECTINSTANCEW(const DIDEVICEOBJECTINSTANCEW *ddoi) DECLSPEC_HIDDEN
Definition: device.c:191
HRESULT WINAPI IDirectInputDevice2WImpl_Unacquire(LPDIRECTINPUTDEVICE8W iface) DECLSPEC_HIDDEN
Definition: device.c:1108
HRESULT WINAPI IDirectInputDevice2AImpl_Acquire(LPDIRECTINPUTDEVICE8A iface) DECLSPEC_HIDDEN
Definition: device.c:1097
HRESULT WINAPI IDirectInputDevice2WImpl_SendForceFeedbackCommand(LPDIRECTINPUTDEVICE8W iface, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1800
struct IDirectInputDevice8A * LPDIRECTINPUTDEVICE8A
Definition: dinput.h:105
static const WCHAR props[]
Definition: wbemdisp.c:288
uint32_t * LPDWORD
Definition: typedefs.h:57
IDirectInputDevice8W IDirectInputDevice8W_iface
unsigned int ULONG
Definition: retypes.h:1
static HINSTANCE hinst
Definition: edit.c:551
void _dump_DIPROPHEADER(LPCDIPROPHEADER diph) DECLSPEC_HIDDEN
Definition: device.c:176
HRESULT WINAPI IDirectInputDevice2AImpl_GetEffectInfo(LPDIRECTINPUTDEVICE8A iface, LPDIEFFECTINFOA lpdei, REFGUID rguid) DECLSPEC_HIDDEN
Definition: device.c:1767
_Out_ PDWORD pdwOut
Definition: ntgdi.h:1813
void release_DataFormat(DataFormat *df) DECLSPEC_HIDDEN
Definition: device.c:391
HRESULT WINAPI IDirectInputDevice7WImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8W iface, LPCWSTR lpszFileName, LPDIENUMEFFECTSINFILECALLBACK pec, LPVOID pvRef, DWORD dwFlags) DECLSPEC_HIDDEN
Definition: device.c:1888
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT _set_action_map(LPDIRECTINPUTDEVICE8W iface, LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags, LPCDIDATAFORMAT df) DECLSPEC_HIDDEN
Definition: device.c:866
HRESULT WINAPI IDirectInputDevice2AImpl_Initialize(LPDIRECTINPUTDEVICE8A iface, HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) DECLSPEC_HIDDEN
Definition: device.c:1714
int id_to_object(LPCDIDATAFORMAT df, int id) DECLSPEC_HIDDEN
Definition: device.c:588
LONG lDeadZone
HRESULT save_mapping_settings(IDirectInputDevice8W *iface, LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUsername) DECLSPEC_HIDDEN
Definition: device.c:695
HRESULT WINAPI IDirectInputDevice2WImpl_SetDataFormat(LPDIRECTINPUTDEVICE8W iface, LPCDIDATAFORMAT df) DECLSPEC_HIDDEN
Definition: device.c:1135
HRESULT WINAPI IDirectInputDevice2WImpl_SetProperty(LPDIRECTINPUTDEVICE8W iface, REFGUID rguid, LPCDIPROPHEADER pdiph) DECLSPEC_HIDDEN
Definition: device.c:1450
unsigned int offset