Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
179b8627
Commit
179b8627
authored
Jan 03, 2011
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jan 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Rename IDirectInputDevice2AImpl into IDirectInputDeviceImpl.
parent
0adc4708
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
32 deletions
+32
-32
device.c
dlls/dinput/device.c
+17
-17
device_private.h
dlls/dinput/device_private.h
+2
-2
dinput_main.c
dlls/dinput/dinput_main.c
+9
-9
joystick_private.h
dlls/dinput/joystick_private.h
+1
-1
keyboard.c
dlls/dinput/keyboard.c
+1
-1
mouse.c
dlls/dinput/mouse.c
+2
-2
No files found.
dlls/dinput/device.c
View file @
179b8627
...
...
@@ -535,7 +535,7 @@ int find_property(const DataFormat *df, LPCDIPROPHEADER ph)
void
queue_event
(
LPDIRECTINPUTDEVICE8A
iface
,
int
inst_id
,
DWORD
data
,
DWORD
time
,
DWORD
seq
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
int
next_pos
,
ofs
=
id_to_offset
(
&
This
->
data_format
,
inst_id
);
/* Event is being set regardless of the queue state */
...
...
@@ -568,7 +568,7 @@ void queue_event(LPDIRECTINPUTDEVICE8A iface, int inst_id, DWORD data, DWORD tim
HRESULT
WINAPI
IDirectInputDevice2AImpl_Acquire
(
LPDIRECTINPUTDEVICE8A
iface
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
HRESULT
res
;
if
(
!
This
->
data_format
.
user_df
)
return
DIERR_INVALIDPARAM
;
...
...
@@ -594,7 +594,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
HRESULT
WINAPI
IDirectInputDevice2AImpl_Unacquire
(
LPDIRECTINPUTDEVICE8A
iface
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
HRESULT
res
;
EnterCriticalSection
(
&
This
->
crit
);
...
...
@@ -614,7 +614,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
HRESULT
WINAPI
IDirectInputDevice2AImpl_SetDataFormat
(
LPDIRECTINPUTDEVICE8A
iface
,
LPCDIDATAFORMAT
df
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
HRESULT
res
=
DI_OK
;
if
(
!
df
)
return
E_POINTER
;
...
...
@@ -641,7 +641,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SetDataFormat(
HRESULT
WINAPI
IDirectInputDevice2AImpl_SetCooperativeLevel
(
LPDIRECTINPUTDEVICE8A
iface
,
HWND
hwnd
,
DWORD
dwflags
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
TRACE
(
"(%p) %p,0x%08x
\n
"
,
This
,
hwnd
,
dwflags
);
_dump_cooperativelevel_DI
(
dwflags
);
...
...
@@ -679,7 +679,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SetCooperativeLevel(
HRESULT
WINAPI
IDirectInputDevice2AImpl_SetEventNotification
(
LPDIRECTINPUTDEVICE8A
iface
,
HANDLE
event
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
TRACE
(
"(%p) %p
\n
"
,
This
,
event
);
...
...
@@ -691,7 +691,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SetEventNotification(
ULONG
WINAPI
IDirectInputDevice2AImpl_Release
(
LPDIRECTINPUTDEVICE8A
iface
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
...
...
@@ -725,7 +725,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(
LPDIRECTINPUTDEVICE8A
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
TRACE
(
"(this=%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
...
...
@@ -761,7 +761,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(
LPDIRECTINPUTDEVICE8W
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
TRACE
(
"(this=%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
...
...
@@ -796,14 +796,14 @@ HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(
ULONG
WINAPI
IDirectInputDevice2AImpl_AddRef
(
LPDIRECTINPUTDEVICE8A
iface
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
return
InterlockedIncrement
(
&
(
This
->
ref
));
}
HRESULT
WINAPI
IDirectInputDevice2AImpl_EnumObjects
(
LPDIRECTINPUTDEVICE8A
iface
,
LPDIENUMDEVICEOBJECTSCALLBACKA
lpCallback
,
LPVOID
lpvRef
,
DWORD
dwFlags
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
DIDEVICEOBJECTINSTANCEA
ddoi
;
int
i
;
...
...
@@ -833,7 +833,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_EnumObjects(LPDIRECTINPUTDEVICE8A iface,
HRESULT
WINAPI
IDirectInputDevice2WImpl_EnumObjects
(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIENUMDEVICEOBJECTSCALLBACKW
lpCallback
,
LPVOID
lpvRef
,
DWORD
dwFlags
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
DIDEVICEOBJECTINSTANCEW
ddoi
;
int
i
;
...
...
@@ -867,7 +867,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_EnumObjects(LPDIRECTINPUTDEVICE8W iface,
HRESULT
WINAPI
IDirectInputDevice2AImpl_GetProperty
(
LPDIRECTINPUTDEVICE8A
iface
,
REFGUID
rguid
,
LPDIPROPHEADER
pdiph
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
TRACE
(
"(%p) %s,%p
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
_dump_DIPROPHEADER
(
pdiph
);
...
...
@@ -901,7 +901,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_GetProperty(
HRESULT
WINAPI
IDirectInputDevice2AImpl_SetProperty
(
LPDIRECTINPUTDEVICE8A
iface
,
REFGUID
rguid
,
LPCDIPROPHEADER
pdiph
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
TRACE
(
"(%p) %s,%p
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
_dump_DIPROPHEADER
(
pdiph
);
...
...
@@ -995,7 +995,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
DWORD
dwObj
,
DWORD
dwHow
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
DWORD
dwSize
;
LPDIOBJECTDATAFORMAT
odf
;
int
idx
=
-
1
;
...
...
@@ -1046,7 +1046,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_GetDeviceData(
LPDIRECTINPUTDEVICE8A
iface
,
DWORD
dodsize
,
LPDIDEVICEOBJECTDATA
dod
,
LPDWORD
entries
,
DWORD
flags
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
HRESULT
ret
=
DI_OK
;
int
len
;
...
...
@@ -1217,7 +1217,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Escape(
HRESULT
WINAPI
IDirectInputDevice2AImpl_Poll
(
LPDIRECTINPUTDEVICE8A
iface
)
{
IDirectInputDevice
2AImpl
*
This
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
This
=
(
IDirectInputDevice
Impl
*
)
iface
;
if
(
!
This
->
acquired
)
return
DIERR_NOTACQUIRED
;
/* Because wine devices do not need to be polled, just return DI_NOEFFECT */
...
...
dlls/dinput/device_private.h
View file @
179b8627
...
...
@@ -48,8 +48,8 @@ typedef struct
}
DataFormat
;
/* Device implementation */
typedef
struct
IDirectInputDevice
2AImpl
IDirectInputDevice2A
Impl
;
struct
IDirectInputDevice
2A
Impl
typedef
struct
IDirectInputDevice
Impl
IDirectInputDevice
Impl
;
struct
IDirectInputDeviceImpl
{
const
void
*
lpVtbl
;
LONG
ref
;
...
...
dlls/dinput/dinput_main.c
View file @
179b8627
...
...
@@ -504,7 +504,7 @@ static HRESULT WINAPI IDirectInput7AImpl_CreateDeviceEx(LPDIRECTINPUT7A iface, R
if
((
ret
=
dinput_devices
[
i
]
->
create_deviceA
(
This
,
rguid
,
riid
,
(
LPDIRECTINPUTDEVICEA
*
)
pvOut
))
==
DI_OK
)
{
EnterCriticalSection
(
&
This
->
crit
);
list_add_tail
(
&
This
->
devices_list
,
&
(
*
(
IDirectInputDevice
2A
Impl
**
)
pvOut
)
->
entry
);
list_add_tail
(
&
This
->
devices_list
,
&
(
*
(
IDirectInputDeviceImpl
**
)
pvOut
)
->
entry
);
LeaveCriticalSection
(
&
This
->
crit
);
return
DI_OK
;
}
...
...
@@ -540,7 +540,7 @@ static HRESULT WINAPI IDirectInput7WImpl_CreateDeviceEx(LPDIRECTINPUT7W iface, R
if
((
ret
=
dinput_devices
[
i
]
->
create_deviceW
(
This
,
rguid
,
riid
,
(
LPDIRECTINPUTDEVICEW
*
)
pvOut
))
==
DI_OK
)
{
EnterCriticalSection
(
&
This
->
crit
);
list_add_tail
(
&
This
->
devices_list
,
&
(
*
(
IDirectInputDevice
2A
Impl
**
)
pvOut
)
->
entry
);
list_add_tail
(
&
This
->
devices_list
,
&
(
*
(
IDirectInputDeviceImpl
**
)
pvOut
)
->
entry
);
LeaveCriticalSection
(
&
This
->
crit
);
return
DI_OK
;
}
...
...
@@ -920,10 +920,10 @@ static LRESULT CALLBACK LL_hook_proc( int code, WPARAM wparam, LPARAM lparam )
EnterCriticalSection
(
&
dinput_hook_crit
);
LIST_FOR_EACH_ENTRY
(
dinput
,
&
direct_input_list
,
IDirectInputImpl
,
entry
)
{
IDirectInputDevice
2A
Impl
*
dev
;
IDirectInputDeviceImpl
*
dev
;
EnterCriticalSection
(
&
dinput
->
crit
);
LIST_FOR_EACH_ENTRY
(
dev
,
&
dinput
->
devices_list
,
IDirectInputDevice
2A
Impl
,
entry
)
LIST_FOR_EACH_ENTRY
(
dev
,
&
dinput
->
devices_list
,
IDirectInputDeviceImpl
,
entry
)
if
(
dev
->
acquired
&&
dev
->
event_proc
)
{
TRACE
(
"calling %p->%p (%lx %lx)
\n
"
,
dev
,
dev
->
event_proc
,
wparam
,
lparam
);
...
...
@@ -952,10 +952,10 @@ static LRESULT CALLBACK callwndproc_proc( int code, WPARAM wparam, LPARAM lparam
LIST_FOR_EACH_ENTRY
(
dinput
,
&
direct_input_list
,
IDirectInputImpl
,
entry
)
{
IDirectInputDevice
2A
Impl
*
dev
;
IDirectInputDeviceImpl
*
dev
;
EnterCriticalSection
(
&
dinput
->
crit
);
LIST_FOR_EACH_ENTRY
(
dev
,
&
dinput
->
devices_list
,
IDirectInputDevice
2A
Impl
,
entry
)
LIST_FOR_EACH_ENTRY
(
dev
,
&
dinput
->
devices_list
,
IDirectInputDeviceImpl
,
entry
)
{
if
(
!
dev
->
acquired
)
continue
;
...
...
@@ -1004,10 +1004,10 @@ static DWORD WINAPI hook_thread_proc(void *param)
/* Count acquired keyboards and mice*/
LIST_FOR_EACH_ENTRY
(
dinput
,
&
direct_input_list
,
IDirectInputImpl
,
entry
)
{
IDirectInputDevice
2A
Impl
*
dev
;
IDirectInputDeviceImpl
*
dev
;
EnterCriticalSection
(
&
dinput
->
crit
);
LIST_FOR_EACH_ENTRY
(
dev
,
&
dinput
->
devices_list
,
IDirectInputDevice
2A
Impl
,
entry
)
LIST_FOR_EACH_ENTRY
(
dev
,
&
dinput
->
devices_list
,
IDirectInputDeviceImpl
,
entry
)
{
if
(
!
dev
->
acquired
||
!
dev
->
event_proc
)
continue
;
...
...
@@ -1102,7 +1102,7 @@ void check_dinput_hooks(LPDIRECTINPUTDEVICE8A iface)
{
static
HHOOK
callwndproc_hook
;
static
ULONG
foreground_cnt
;
IDirectInputDevice
2AImpl
*
dev
=
(
IDirectInputDevice2A
Impl
*
)
iface
;
IDirectInputDevice
Impl
*
dev
=
(
IDirectInputDevice
Impl
*
)
iface
;
EnterCriticalSection
(
&
dinput_hook_crit
);
...
...
dlls/dinput/joystick_private.h
View file @
179b8627
...
...
@@ -37,7 +37,7 @@ typedef void joy_polldev_handler(struct JoystickGenericImpl *This);
typedef
struct
JoystickGenericImpl
{
struct
IDirectInputDevice
2A
Impl
base
;
struct
IDirectInputDeviceImpl
base
;
ObjProps
props
[
MAX_PROPS
];
DIDEVCAPS
devcaps
;
...
...
dlls/dinput/keyboard.c
View file @
179b8627
...
...
@@ -46,7 +46,7 @@ static const IDirectInputDevice8WVtbl SysKeyboardWvt;
typedef
struct
SysKeyboardImpl
SysKeyboardImpl
;
struct
SysKeyboardImpl
{
struct
IDirectInputDevice
2A
Impl
base
;
struct
IDirectInputDeviceImpl
base
;
BYTE
DInputKeyState
[
WINE_DINPUT_KEYBOARD_MAX_KEYS
];
};
...
...
dlls/dinput/mouse.c
View file @
179b8627
...
...
@@ -60,8 +60,8 @@ typedef enum
struct
SysMouseImpl
{
struct
IDirectInputDevice
2AImpl
base
;
struct
IDirectInputDevice
Impl
base
;
/* SysMouseAImpl */
/* These are used in case of relative -> absolute transitions */
POINT
org_coords
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment