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
9594be7f
Commit
9594be7f
authored
Jan 09, 2011
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jan 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Change internal check_dinput_hooks method to take W iface.
parent
399be345
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/dinput/device.c
+2
-2
dinput_main.c
dlls/dinput/dinput_main.c
+1
-1
dinput_private.h
dlls/dinput/dinput_private.h
+1
-1
No files found.
dlls/dinput/device.c
View file @
9594be7f
...
@@ -590,7 +590,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
...
@@ -590,7 +590,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
if
(
res
==
DI_OK
)
if
(
res
==
DI_OK
)
{
{
This
->
queue_head
=
This
->
queue_tail
=
This
->
overflow
=
0
;
This
->
queue_head
=
This
->
queue_tail
=
This
->
overflow
=
0
;
check_dinput_hooks
(
iface
);
check_dinput_hooks
(
(
LPDIRECTINPUTDEVICE8W
)
iface
);
}
}
LeaveCriticalSection
(
&
This
->
crit
);
LeaveCriticalSection
(
&
This
->
crit
);
...
@@ -610,7 +610,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
...
@@ -610,7 +610,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
res
=
!
This
->
acquired
?
DI_NOEFFECT
:
DI_OK
;
res
=
!
This
->
acquired
?
DI_NOEFFECT
:
DI_OK
;
This
->
acquired
=
0
;
This
->
acquired
=
0
;
if
(
res
==
DI_OK
)
if
(
res
==
DI_OK
)
check_dinput_hooks
(
iface
);
check_dinput_hooks
(
(
LPDIRECTINPUTDEVICE8W
)
iface
);
LeaveCriticalSection
(
&
This
->
crit
);
LeaveCriticalSection
(
&
This
->
crit
);
return
res
;
return
res
;
...
...
dlls/dinput/dinput_main.c
View file @
9594be7f
...
@@ -1093,7 +1093,7 @@ static BOOL check_hook_thread(void)
...
@@ -1093,7 +1093,7 @@ static BOOL check_hook_thread(void)
return
hook_thread_id
!=
0
;
return
hook_thread_id
!=
0
;
}
}
void
check_dinput_hooks
(
LPDIRECTINPUTDEVICE8
A
iface
)
void
check_dinput_hooks
(
LPDIRECTINPUTDEVICE8
W
iface
)
{
{
static
HHOOK
callwndproc_hook
;
static
HHOOK
callwndproc_hook
;
static
ULONG
foreground_cnt
;
static
ULONG
foreground_cnt
;
...
...
dlls/dinput/dinput_private.h
View file @
9594be7f
...
@@ -60,7 +60,7 @@ extern const struct dinput_device joystick_linux_device;
...
@@ -60,7 +60,7 @@ extern const struct dinput_device joystick_linux_device;
extern
const
struct
dinput_device
joystick_linuxinput_device
;
extern
const
struct
dinput_device
joystick_linuxinput_device
;
extern
const
struct
dinput_device
joystick_osx_device
;
extern
const
struct
dinput_device
joystick_osx_device
;
extern
void
check_dinput_hooks
(
LPDIRECTINPUTDEVICE8
A
);
extern
void
check_dinput_hooks
(
LPDIRECTINPUTDEVICE8
W
);
typedef
int
(
*
DI_EVENT_PROC
)(
LPDIRECTINPUTDEVICE8A
,
WPARAM
,
LPARAM
);
typedef
int
(
*
DI_EVENT_PROC
)(
LPDIRECTINPUTDEVICE8A
,
WPARAM
,
LPARAM
);
extern
void
_dump_diactionformatA
(
LPDIACTIONFORMATA
);
extern
void
_dump_diactionformatA
(
LPDIACTIONFORMATA
);
...
...
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