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
a0abf988
Commit
a0abf988
authored
Jul 25, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jul 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Implement saturation property for evdev joystick driver.
parent
87c3df15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+31
-0
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
a0abf988
...
...
@@ -885,6 +885,26 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
FIXME
(
"DIPROP_AUTOCENTER(%d)
\n
"
,
pd
->
dwData
);
break
;
}
case
(
DWORD
)
DIPROP_SATURATION
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
if
(
ph
->
dwHow
==
DIPH_DEVICE
)
{
int
i
;
TRACE
(
"saturation(%d) all
\n
"
,
pd
->
dwData
);
for
(
i
=
0
;
i
<
This
->
base
.
data_format
.
wine_df
->
dwNumObjs
;
i
++
)
This
->
props
[
i
].
lSaturation
=
pd
->
dwData
;
}
else
{
int
obj
=
find_property
(
&
This
->
base
.
data_format
,
ph
);
if
(
obj
<
0
)
return
DIERR_OBJECTNOTFOUND
;
TRACE
(
"saturation(%d) obj=%d
\n
"
,
pd
->
dwData
,
obj
);
This
->
props
[
obj
].
lSaturation
=
pd
->
dwData
;
}
fake_current_js_state
(
This
);
break
;
}
default:
return
IDirectInputDevice2AImpl_SetProperty
(
iface
,
rguid
,
ph
);
}
...
...
@@ -977,6 +997,17 @@ static HRESULT WINAPI JoystickAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
TRACE
(
"deadzone(%d) obj=%d
\n
"
,
pd
->
dwData
,
obj
);
break
;
}
case
(
DWORD
)
DIPROP_SATURATION
:
{
LPDIPROPDWORD
pd
=
(
LPDIPROPDWORD
)
pdiph
;
int
obj
=
find_property
(
&
This
->
base
.
data_format
,
pdiph
);
if
(
obj
<
0
)
return
DIERR_OBJECTNOTFOUND
;
pd
->
dwData
=
This
->
props
[
obj
].
lSaturation
;
TRACE
(
"saturation(%d) obj=%d
\n
"
,
pd
->
dwData
,
obj
);
break
;
}
default:
return
IDirectInputDevice2AImpl_GetProperty
(
iface
,
rguid
,
pdiph
);
...
...
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