Commit f0935f85 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput: Rename IDirectInputImpl to struct dinput.

parent 46f7d4c1
...@@ -54,22 +54,22 @@ static inline IDirectInputDeviceA *IDirectInputDeviceA_from_IDirectInputDeviceW( ...@@ -54,22 +54,22 @@ static inline IDirectInputDeviceA *IDirectInputDeviceA_from_IDirectInputDeviceW(
return (IDirectInputDeviceA *)IDirectInputDevice8A_from_IDirectInputDevice8W( (IDirectInputDevice8W *)iface ); return (IDirectInputDeviceA *)IDirectInputDevice8A_from_IDirectInputDevice8W( (IDirectInputDevice8W *)iface );
} }
static IDirectInputImpl *impl_from_IDirectInput7A( IDirectInput7A *iface ) static struct dinput *impl_from_IDirectInput7A( IDirectInput7A *iface )
{ {
return CONTAINING_RECORD( iface, IDirectInputImpl, IDirectInput7A_iface ); return CONTAINING_RECORD( iface, struct dinput, IDirectInput7A_iface );
} }
static IDirectInput7W *IDirectInput7W_from_impl( IDirectInputImpl *impl ) static IDirectInput7W *IDirectInput7W_from_impl( struct dinput *impl )
{ {
return &impl->IDirectInput7W_iface; return &impl->IDirectInput7W_iface;
} }
static IDirectInputImpl *impl_from_IDirectInput8A( IDirectInput8A *iface ) static struct dinput *impl_from_IDirectInput8A( IDirectInput8A *iface )
{ {
return CONTAINING_RECORD( iface, IDirectInputImpl, IDirectInput8A_iface ); return CONTAINING_RECORD( iface, struct dinput, IDirectInput8A_iface );
} }
static IDirectInput8W *IDirectInput8W_from_impl( IDirectInputImpl *impl ) static IDirectInput8W *IDirectInput8W_from_impl( struct dinput *impl )
{ {
return &impl->IDirectInput8W_iface; return &impl->IDirectInput8W_iface;
} }
...@@ -678,28 +678,28 @@ const IDirectInputDevice8AVtbl dinput_device_a_vtbl = ...@@ -678,28 +678,28 @@ const IDirectInputDevice8AVtbl dinput_device_a_vtbl =
static HRESULT WINAPI dinput8_a_QueryInterface( IDirectInput8A *iface_a, REFIID iid, void **out ) static HRESULT WINAPI dinput8_a_QueryInterface( IDirectInput8A *iface_a, REFIID iid, void **out )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
return IDirectInput8_QueryInterface( iface_w, iid, out ); return IDirectInput8_QueryInterface( iface_w, iid, out );
} }
static ULONG WINAPI dinput8_a_AddRef( IDirectInput8A *iface_a ) static ULONG WINAPI dinput8_a_AddRef( IDirectInput8A *iface_a )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
return IDirectInput8_AddRef( iface_w ); return IDirectInput8_AddRef( iface_w );
} }
static ULONG WINAPI dinput8_a_Release( IDirectInput8A *iface_a ) static ULONG WINAPI dinput8_a_Release( IDirectInput8A *iface_a )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
return IDirectInput8_Release( iface_w ); return IDirectInput8_Release( iface_w );
} }
static HRESULT WINAPI dinput8_a_CreateDevice( IDirectInput8A *iface_a, REFGUID guid, IDirectInputDevice8A **out, IUnknown *outer ) static HRESULT WINAPI dinput8_a_CreateDevice( IDirectInput8A *iface_a, REFGUID guid, IDirectInputDevice8A **out, IUnknown *outer )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
IDirectInputDevice8W *outw; IDirectInputDevice8W *outw;
HRESULT hr; HRESULT hr;
...@@ -730,7 +730,7 @@ static HRESULT WINAPI dinput8_a_EnumDevices( IDirectInput8A *iface_a, DWORD type ...@@ -730,7 +730,7 @@ static HRESULT WINAPI dinput8_a_EnumDevices( IDirectInput8A *iface_a, DWORD type
void *ref, DWORD flags ) void *ref, DWORD flags )
{ {
struct enum_devices_wtoa_params params = {callback, ref}; struct enum_devices_wtoa_params params = {callback, ref};
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
if (!callback) return DIERR_INVALIDPARAM; if (!callback) return DIERR_INVALIDPARAM;
...@@ -740,28 +740,28 @@ static HRESULT WINAPI dinput8_a_EnumDevices( IDirectInput8A *iface_a, DWORD type ...@@ -740,28 +740,28 @@ static HRESULT WINAPI dinput8_a_EnumDevices( IDirectInput8A *iface_a, DWORD type
static HRESULT WINAPI dinput8_a_GetDeviceStatus( IDirectInput8A *iface_a, REFGUID instance_guid ) static HRESULT WINAPI dinput8_a_GetDeviceStatus( IDirectInput8A *iface_a, REFGUID instance_guid )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
return IDirectInput8_GetDeviceStatus( iface_w, instance_guid ); return IDirectInput8_GetDeviceStatus( iface_w, instance_guid );
} }
static HRESULT WINAPI dinput8_a_RunControlPanel( IDirectInput8A *iface_a, HWND owner, DWORD flags ) static HRESULT WINAPI dinput8_a_RunControlPanel( IDirectInput8A *iface_a, HWND owner, DWORD flags )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
return IDirectInput8_RunControlPanel( iface_w, owner, flags ); return IDirectInput8_RunControlPanel( iface_w, owner, flags );
} }
static HRESULT WINAPI dinput8_a_Initialize( IDirectInput8A *iface_a, HINSTANCE instance, DWORD version ) static HRESULT WINAPI dinput8_a_Initialize( IDirectInput8A *iface_a, HINSTANCE instance, DWORD version )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
return IDirectInput8_Initialize( iface_w, instance, version ); return IDirectInput8_Initialize( iface_w, instance, version );
} }
static HRESULT WINAPI dinput8_a_FindDevice( IDirectInput8A *iface_a, REFGUID guid, const char *name_a, GUID *instance_guid ) static HRESULT WINAPI dinput8_a_FindDevice( IDirectInput8A *iface_a, REFGUID guid, const char *name_a, GUID *instance_guid )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
HRESULT hr; HRESULT hr;
WCHAR *name_w; WCHAR *name_w;
...@@ -794,7 +794,7 @@ static HRESULT WINAPI dinput8_a_EnumDevicesBySemantics( IDirectInput8A *iface_a, ...@@ -794,7 +794,7 @@ static HRESULT WINAPI dinput8_a_EnumDevicesBySemantics( IDirectInput8A *iface_a,
LPDIENUMDEVICESBYSEMANTICSCBA callback, void *ref, DWORD flags ) LPDIENUMDEVICESBYSEMANTICSCBA callback, void *ref, DWORD flags )
{ {
struct enum_devices_by_semantics_wtoa_params params = {callback, ref}; struct enum_devices_by_semantics_wtoa_params params = {callback, ref};
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
DIACTIONFORMATW format_w = {sizeof(format_w), sizeof(DIACTIONW)}; DIACTIONFORMATW format_w = {sizeof(format_w), sizeof(DIACTIONW)};
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
HRESULT hr; HRESULT hr;
...@@ -821,7 +821,7 @@ static HRESULT WINAPI dinput8_a_EnumDevicesBySemantics( IDirectInput8A *iface_a, ...@@ -821,7 +821,7 @@ static HRESULT WINAPI dinput8_a_EnumDevicesBySemantics( IDirectInput8A *iface_a,
static HRESULT WINAPI dinput8_a_ConfigureDevices( IDirectInput8A *iface_a, LPDICONFIGUREDEVICESCALLBACK callback, static HRESULT WINAPI dinput8_a_ConfigureDevices( IDirectInput8A *iface_a, LPDICONFIGUREDEVICESCALLBACK callback,
DICONFIGUREDEVICESPARAMSA *params_a, DWORD flags, void *ref ) DICONFIGUREDEVICESPARAMSA *params_a, DWORD flags, void *ref )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput8A( iface_a ); struct dinput *impl = impl_from_IDirectInput8A( iface_a );
IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl ); IDirectInput8W *iface_w = IDirectInput8W_from_impl( impl );
DICONFIGUREDEVICESPARAMSW params_w = {sizeof(params_w)}; DICONFIGUREDEVICESPARAMSW params_w = {sizeof(params_w)};
DIACTIONFORMATA *format_a = params_a->lprgFormats; DIACTIONFORMATA *format_a = params_a->lprgFormats;
...@@ -873,28 +873,28 @@ const IDirectInput8AVtbl dinput8_a_vtbl = ...@@ -873,28 +873,28 @@ const IDirectInput8AVtbl dinput8_a_vtbl =
static HRESULT WINAPI dinput7_a_QueryInterface( IDirectInput7A *iface_a, REFIID iid, void **out ) static HRESULT WINAPI dinput7_a_QueryInterface( IDirectInput7A *iface_a, REFIID iid, void **out )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
return IDirectInput7_QueryInterface( iface_w, iid, out ); return IDirectInput7_QueryInterface( iface_w, iid, out );
} }
static ULONG WINAPI dinput7_a_AddRef( IDirectInput7A *iface_a ) static ULONG WINAPI dinput7_a_AddRef( IDirectInput7A *iface_a )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
return IDirectInput7_AddRef( iface_w ); return IDirectInput7_AddRef( iface_w );
} }
static ULONG WINAPI dinput7_a_Release( IDirectInput7A *iface_a ) static ULONG WINAPI dinput7_a_Release( IDirectInput7A *iface_a )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
return IDirectInput7_Release( iface_w ); return IDirectInput7_Release( iface_w );
} }
static HRESULT WINAPI dinput7_a_CreateDevice( IDirectInput7A *iface_a, REFGUID guid, IDirectInputDeviceA **out_a, IUnknown *outer ) static HRESULT WINAPI dinput7_a_CreateDevice( IDirectInput7A *iface_a, REFGUID guid, IDirectInputDeviceA **out_a, IUnknown *outer )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
IDirectInputDeviceW *out_w; IDirectInputDeviceW *out_w;
HRESULT hr; HRESULT hr;
...@@ -910,7 +910,7 @@ static HRESULT WINAPI dinput7_a_EnumDevices( IDirectInput7A *iface_a, DWORD type ...@@ -910,7 +910,7 @@ static HRESULT WINAPI dinput7_a_EnumDevices( IDirectInput7A *iface_a, DWORD type
void *ref, DWORD flags ) void *ref, DWORD flags )
{ {
struct enum_devices_wtoa_params params = {callback, ref}; struct enum_devices_wtoa_params params = {callback, ref};
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
if (!callback) return DIERR_INVALIDPARAM; if (!callback) return DIERR_INVALIDPARAM;
...@@ -920,28 +920,28 @@ static HRESULT WINAPI dinput7_a_EnumDevices( IDirectInput7A *iface_a, DWORD type ...@@ -920,28 +920,28 @@ static HRESULT WINAPI dinput7_a_EnumDevices( IDirectInput7A *iface_a, DWORD type
static HRESULT WINAPI dinput7_a_GetDeviceStatus( IDirectInput7A *iface_a, REFGUID instance_guid ) static HRESULT WINAPI dinput7_a_GetDeviceStatus( IDirectInput7A *iface_a, REFGUID instance_guid )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
return IDirectInput7_GetDeviceStatus( iface_w, instance_guid ); return IDirectInput7_GetDeviceStatus( iface_w, instance_guid );
} }
static HRESULT WINAPI dinput7_a_RunControlPanel( IDirectInput7A *iface_a, HWND owner, DWORD flags ) static HRESULT WINAPI dinput7_a_RunControlPanel( IDirectInput7A *iface_a, HWND owner, DWORD flags )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
return IDirectInput7_RunControlPanel( iface_w, owner, flags ); return IDirectInput7_RunControlPanel( iface_w, owner, flags );
} }
static HRESULT WINAPI dinput7_a_Initialize( IDirectInput7A *iface_a, HINSTANCE instance, DWORD version ) static HRESULT WINAPI dinput7_a_Initialize( IDirectInput7A *iface_a, HINSTANCE instance, DWORD version )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
return IDirectInput7_Initialize( iface_w, instance, version ); return IDirectInput7_Initialize( iface_w, instance, version );
} }
static HRESULT WINAPI dinput7_a_FindDevice( IDirectInput7A *iface_a, REFGUID guid, const char *name_a, GUID *instance_guid ) static HRESULT WINAPI dinput7_a_FindDevice( IDirectInput7A *iface_a, REFGUID guid, const char *name_a, GUID *instance_guid )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
HRESULT hr; HRESULT hr;
WCHAR *name_w; WCHAR *name_w;
...@@ -955,7 +955,7 @@ static HRESULT WINAPI dinput7_a_FindDevice( IDirectInput7A *iface_a, REFGUID gui ...@@ -955,7 +955,7 @@ static HRESULT WINAPI dinput7_a_FindDevice( IDirectInput7A *iface_a, REFGUID gui
static HRESULT WINAPI dinput7_a_CreateDeviceEx( IDirectInput7A *iface_a, REFGUID guid, REFIID iid, void **out, IUnknown *outer ) static HRESULT WINAPI dinput7_a_CreateDeviceEx( IDirectInput7A *iface_a, REFGUID guid, REFIID iid, void **out, IUnknown *outer )
{ {
IDirectInputImpl *impl = impl_from_IDirectInput7A( iface_a ); struct dinput *impl = impl_from_IDirectInput7A( iface_a );
IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl ); IDirectInput7W *iface_w = IDirectInput7W_from_impl( impl );
return IDirectInput7_CreateDeviceEx( iface_w, guid, iid, out, outer ); return IDirectInput7_CreateDeviceEx( iface_w, guid, iid, out, outer );
} }
......
...@@ -2153,8 +2153,8 @@ static const IDirectInputDevice8WVtbl dinput_device_w_vtbl = ...@@ -2153,8 +2153,8 @@ static const IDirectInputDevice8WVtbl dinput_device_w_vtbl =
dinput_device_GetImageInfo, dinput_device_GetImageInfo,
}; };
HRESULT dinput_device_alloc( SIZE_T size, const struct dinput_device_vtbl *vtbl, HRESULT dinput_device_alloc( SIZE_T size, const struct dinput_device_vtbl *vtbl, const GUID *guid,
const GUID *guid, IDirectInputImpl *dinput, void **out ) struct dinput *dinput, void **out )
{ {
struct dinput_device *This; struct dinput_device *This;
DIDATAFORMAT *format; DIDATAFORMAT *format;
......
...@@ -84,7 +84,7 @@ struct dinput_device ...@@ -84,7 +84,7 @@ struct dinput_device
LONG ref; LONG ref;
GUID guid; GUID guid;
CRITICAL_SECTION crit; CRITICAL_SECTION crit;
IDirectInputImpl *dinput; struct dinput *dinput;
struct list entry; /* entry into acquired device list */ struct list entry; /* entry into acquired device list */
HANDLE hEvent; HANDLE hEvent;
DIDEVICEINSTANCEW instance; DIDEVICEINSTANCEW instance;
...@@ -124,7 +124,7 @@ struct dinput_device ...@@ -124,7 +124,7 @@ struct dinput_device
}; };
extern HRESULT dinput_device_alloc( SIZE_T size, const struct dinput_device_vtbl *vtbl, const GUID *guid, extern HRESULT dinput_device_alloc( SIZE_T size, const struct dinput_device_vtbl *vtbl, const GUID *guid,
IDirectInputImpl *dinput, void **out ) DECLSPEC_HIDDEN; struct dinput *dinput, void **out ) DECLSPEC_HIDDEN;
extern HRESULT dinput_device_init( IDirectInputDevice8W *iface ); extern HRESULT dinput_device_init( IDirectInputDevice8W *iface );
extern void dinput_device_destroy( IDirectInputDevice8W *iface ); extern void dinput_device_destroy( IDirectInputDevice8W *iface );
......
...@@ -30,31 +30,30 @@ ...@@ -30,31 +30,30 @@
extern HINSTANCE DINPUT_instance; extern HINSTANCE DINPUT_instance;
/* Implementation specification */ /* Implementation specification */
typedef struct IDirectInputImpl IDirectInputImpl; struct dinput
struct IDirectInputImpl
{ {
IDirectInput7A IDirectInput7A_iface; IDirectInput7A IDirectInput7A_iface;
IDirectInput7W IDirectInput7W_iface; IDirectInput7W IDirectInput7W_iface;
IDirectInput8A IDirectInput8A_iface; IDirectInput8A IDirectInput8A_iface;
IDirectInput8W IDirectInput8W_iface; IDirectInput8W IDirectInput8W_iface;
IDirectInputJoyConfig8 IDirectInputJoyConfig8_iface; IDirectInputJoyConfig8 IDirectInputJoyConfig8_iface;
LONG ref;
LONG ref;
BOOL initialized; BOOL initialized;
DWORD evsequence; /* unique sequence number for events */ DWORD dwVersion; /* direct input version number */
DWORD dwVersion; /* direct input version number */ DWORD evsequence; /* unique sequence number for events */
struct list device_players; /* device instance guid to player name */ struct list device_players; /* device instance guid to player name */
}; };
extern const IDirectInput7AVtbl dinput7_a_vtbl DECLSPEC_HIDDEN; extern const IDirectInput7AVtbl dinput7_a_vtbl DECLSPEC_HIDDEN;
extern const IDirectInput8AVtbl dinput8_a_vtbl DECLSPEC_HIDDEN; extern const IDirectInput8AVtbl dinput8_a_vtbl DECLSPEC_HIDDEN;
extern HRESULT mouse_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance, DWORD version ); extern HRESULT mouse_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance, DWORD version );
extern HRESULT mouse_create_device( IDirectInputImpl *dinput, const GUID *guid, IDirectInputDevice8W **out ); extern HRESULT mouse_create_device( struct dinput *dinput, const GUID *guid, IDirectInputDevice8W **out );
extern HRESULT keyboard_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance, DWORD version ); extern HRESULT keyboard_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance, DWORD version );
extern HRESULT keyboard_create_device( IDirectInputImpl *dinput, const GUID *guid, IDirectInputDevice8W **out ); extern HRESULT keyboard_create_device( struct dinput *dinput, const GUID *guid, IDirectInputDevice8W **out );
extern HRESULT hid_joystick_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance, DWORD version, int index ); extern HRESULT hid_joystick_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance, DWORD version, int index );
extern HRESULT hid_joystick_create_device( IDirectInputImpl *dinput, const GUID *guid, IDirectInputDevice8W **out ); extern HRESULT hid_joystick_create_device( struct dinput *dinput, const GUID *guid, IDirectInputDevice8W **out );
struct DevicePlayer { struct DevicePlayer {
GUID instance_guid; GUID instance_guid;
......
...@@ -1964,7 +1964,7 @@ static BOOL init_pid_caps( struct hid_joystick *impl, struct hid_value_caps *cap ...@@ -1964,7 +1964,7 @@ static BOOL init_pid_caps( struct hid_joystick *impl, struct hid_value_caps *cap
return DIENUM_CONTINUE; return DIENUM_CONTINUE;
} }
HRESULT hid_joystick_create_device( IDirectInputImpl *dinput, const GUID *guid, IDirectInputDevice8W **out ) HRESULT hid_joystick_create_device( struct dinput *dinput, const GUID *guid, IDirectInputDevice8W **out )
{ {
static const DIPROPHEADER filter = static const DIPROPHEADER filter =
{ {
......
...@@ -164,7 +164,7 @@ HRESULT keyboard_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instan ...@@ -164,7 +164,7 @@ HRESULT keyboard_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instan
return DI_OK; return DI_OK;
} }
HRESULT keyboard_create_device( IDirectInputImpl *dinput, const GUID *guid, IDirectInputDevice8W **out ) HRESULT keyboard_create_device( struct dinput *dinput, const GUID *guid, IDirectInputDevice8W **out )
{ {
struct keyboard *impl; struct keyboard *impl;
HRESULT hr; HRESULT hr;
......
...@@ -91,7 +91,7 @@ HRESULT mouse_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance, ...@@ -91,7 +91,7 @@ HRESULT mouse_enum_device( DWORD type, DWORD flags, DIDEVICEINSTANCEW *instance,
return DI_OK; return DI_OK;
} }
HRESULT mouse_create_device( IDirectInputImpl *dinput, const GUID *guid, IDirectInputDevice8W **out ) HRESULT mouse_create_device( struct dinput *dinput, const GUID *guid, IDirectInputDevice8W **out )
{ {
struct mouse *impl; struct mouse *impl;
HKEY hkey, appkey; HKEY hkey, appkey;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment