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
7b07e4b5
Commit
7b07e4b5
authored
Dec 17, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Dec 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Add handling of AXISMODE property to base device object.
parent
350c66fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
device.c
dlls/dinput/device.c
+19
-0
No files found.
dlls/dinput/device.c
View file @
7b07e4b5
...
...
@@ -876,6 +876,25 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SetProperty(
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD
)
DIPROP_AXISMODE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
pdiph
;
if
(
pdiph
->
dwSize
!=
sizeof
(
DIPROPDWORD
))
return
DIERR_INVALIDPARAM
;
if
(
pdiph
->
dwHow
==
DIPH_DEVICE
&&
pdiph
->
dwObj
)
return
DIERR_INVALIDPARAM
;
if
(
This
->
acquired
)
return
DIERR_ACQUIRED
;
if
(
pdiph
->
dwHow
!=
DIPH_DEVICE
)
return
DIERR_UNSUPPORTED
;
TRACE
(
"Axis mode: %s
\n
"
,
pd
->
dwData
==
DIPROPAXISMODE_ABS
?
"absolute"
:
"relative"
);
EnterCriticalSection
(
&
This
->
crit
);
This
->
data_format
.
user_df
->
dwFlags
&=
~
DIDFT_AXIS
;
This
->
data_format
.
user_df
->
dwFlags
|=
pd
->
dwData
==
DIPROPAXISMODE_ABS
?
DIDF_ABSAXIS
:
DIDF_RELAXIS
;
LeaveCriticalSection
(
&
This
->
crit
);
break
;
}
case
(
DWORD
)
DIPROP_BUFFERSIZE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
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