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
4b33fd69
Commit
4b33fd69
authored
Jan 07, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Set event from queue_event, simplifying code a bit.
parent
8e8b4f03
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
device.c
dlls/dinput/device.c
+2
-0
keyboard.c
dlls/dinput/keyboard.c
+0
-2
mouse.c
dlls/dinput/mouse.c
+0
-3
No files found.
dlls/dinput/device.c
View file @
4b33fd69
...
...
@@ -591,6 +591,8 @@ void queue_event(LPDIRECTINPUTDEVICE8A iface, int ofs, DWORD data, DWORD time, D
This
->
data_queue
[
This
->
queue_head
].
dwTimeStamp
=
time
;
This
->
data_queue
[
This
->
queue_head
].
dwSequence
=
seq
;
This
->
queue_head
=
next_pos
;
/* Send event if asked */
if
(
This
->
hEvent
)
SetEvent
(
This
->
hEvent
);
}
/******************************************************************************
...
...
dlls/dinput/keyboard.c
View file @
4b33fd69
...
...
@@ -90,8 +90,6 @@ static LRESULT CALLBACK KeyboardCallback( int code, WPARAM wparam, LPARAM lparam
queue_event
((
LPDIRECTINPUTDEVICE8A
)
This
,
dik_code
,
new_diks
,
hook
->
time
,
This
->
dinput
->
evsequence
++
);
LeaveCriticalSection
(
&
This
->
base
.
crit
);
if
(
This
->
base
.
hEvent
)
SetEvent
(
This
->
base
.
hEvent
);
return
CallNextHookEx
(
0
,
code
,
wparam
,
lparam
);
}
...
...
dlls/dinput/mouse.c
View file @
4b33fd69
...
...
@@ -376,9 +376,6 @@ static LRESULT CALLBACK dinput_mouse_hook( int code, WPARAM wparam, LPARAM lpara
queue_event
((
LPDIRECTINPUTDEVICE8A
)
This
,
id_to_offset
(
&
This
->
base
.
data_format
,
inst_id
),
wdata
,
hook
->
time
,
This
->
dinput
->
evsequence
++
);
/* Mouse moved -> send event if asked */
if
(
This
->
base
.
hEvent
)
SetEvent
(
This
->
base
.
hEvent
);
LeaveCriticalSection
(
&
This
->
base
.
crit
);
/* Ignore message */
...
...
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