Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
94d14d1f
Commit
94d14d1f
authored
Sep 06, 2005
by
Daniel Remenak
Committed by
Alexandre Julliard
Sep 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect FF_STATUS usage to avoid compile errors on machines with old
linux/input.h.
parent
d60c5cea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+4
-0
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
94d14d1f
...
...
@@ -302,7 +302,9 @@ static JoystickImpl *alloc_device(REFGUID rguid, const void *jvt, IDirectInputIm
newDevice
->
ref
=
1
;
newDevice
->
joyfd
=
-
1
;
newDevice
->
dinput
=
dinput
;
#ifdef HAVE_STRUCT_FF_EFFECT_DIRECTION
newDevice
->
ff_state
=
FF_STATUS_STOPPED
;
#endif
memcpy
(
&
(
newDevice
->
guid
),
rguid
,
sizeof
(
*
rguid
));
for
(
i
=
0
;
i
<
ABS_MAX
;
i
++
)
{
newDevice
->
wantmin
[
i
]
=
-
32768
;
...
...
@@ -723,9 +725,11 @@ static void joy_polldev(JoystickImpl *This) {
break
;
}
break
;
#ifdef HAVE_STRUCT_FF_EFFECT_DIRECTION
case
EV_FF_STATUS
:
This
->
ff_state
=
ie
.
value
;
break
;
#endif
default:
FIXME
(
"joystick cannot handle type %d event (code %d)
\n
"
,
ie
.
type
,
ie
.
code
);
break
;
...
...
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