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
0b99bf3e
Commit
0b99bf3e
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: COM cleanup - use proper interface instead of typecasting This when calling queue_event.
parent
b66e00cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
joystick_linux.c
dlls/dinput/joystick_linux.c
+1
-1
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+1
-1
keyboard.c
dlls/dinput/keyboard.c
+1
-1
mouse.c
dlls/dinput/mouse.c
+2
-2
No files found.
dlls/dinput/joystick_linux.c
View file @
0b99bf3e
...
...
@@ -615,7 +615,7 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
}
}
if
(
inst_id
>=
0
)
queue_event
(
(
LPDIRECTINPUTDEVICE8A
)
This
,
inst_id
,
queue_event
(
iface
,
inst_id
,
value
,
jse
.
time
,
This
->
generic
.
base
.
dinput
->
evsequence
++
);
}
}
...
...
dlls/dinput/joystick_linuxinput.c
View file @
0b99bf3e
...
...
@@ -824,7 +824,7 @@ static void joy_polldev(LPDIRECTINPUTDEVICE8A iface)
break
;
}
if
(
inst_id
>=
0
)
queue_event
(
(
LPDIRECTINPUTDEVICE8A
)
This
,
inst_id
,
queue_event
(
iface
,
inst_id
,
value
,
ie
.
time
.
tv_usec
,
This
->
generic
.
base
.
dinput
->
evsequence
++
);
}
}
...
...
dlls/dinput/keyboard.c
View file @
0b99bf3e
...
...
@@ -108,7 +108,7 @@ static int KeyboardCallback( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
TRACE
(
" setting %02X to %02X
\n
"
,
dik_code
,
This
->
DInputKeyState
[
dik_code
]);
EnterCriticalSection
(
&
This
->
base
.
crit
);
queue_event
(
(
LPDIRECTINPUTDEVICE8A
)
This
,
DIDFT_MAKEINSTANCE
(
dik_code
)
|
DIDFT_PSHBUTTON
,
queue_event
(
iface
,
DIDFT_MAKEINSTANCE
(
dik_code
)
|
DIDFT_PSHBUTTON
,
new_diks
,
hook
->
time
,
This
->
base
.
dinput
->
evsequence
++
);
LeaveCriticalSection
(
&
This
->
base
.
crit
);
...
...
dlls/dinput/mouse.c
View file @
0b99bf3e
...
...
@@ -324,7 +324,7 @@ static int dinput_mouse_hook( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
{
/* Already have X, need to queue it */
if
(
inst_id
!=
-
1
)
queue_event
(
(
LPDIRECTINPUTDEVICE8A
)
This
,
inst_id
,
queue_event
(
iface
,
inst_id
,
wdata
,
GetCurrentTime
(),
This
->
base
.
dinput
->
evsequence
);
inst_id
=
DIDFT_MAKEINSTANCE
(
WINE_MOUSE_Y_AXIS_INSTANCE
)
|
DIDFT_RELAXIS
;
wdata
=
pt1
.
y
;
...
...
@@ -379,7 +379,7 @@ static int dinput_mouse_hook( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
if
(
inst_id
!=
-
1
)
{
_dump_mouse_state
(
&
This
->
m_state
);
queue_event
(
(
LPDIRECTINPUTDEVICE8A
)
This
,
inst_id
,
queue_event
(
iface
,
inst_id
,
wdata
,
GetCurrentTime
(),
This
->
base
.
dinput
->
evsequence
++
);
}
...
...
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