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
3ba6f864
Commit
3ba6f864
authored
Apr 12, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Apr 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Don't use dead-zone from the device.
parent
e67c1cbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+2
-4
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
3ba6f864
...
...
@@ -423,7 +423,7 @@ static JoystickImpl *alloc_device(REFGUID rguid, const void *jvt, IDirectInputIm
int
i
,
idx
=
0
;
char
buffer
[
MAX_PATH
+
16
];
HKEY
hkey
,
appkey
;
LONG
def_deadzone
=
-
1
;
LONG
def_deadzone
=
0
;
newDevice
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
JoystickImpl
));
if
(
!
newDevice
)
return
NULL
;
...
...
@@ -471,9 +471,7 @@ static JoystickImpl *alloc_device(REFGUID rguid, const void *jvt, IDirectInputIm
newDevice
->
props
[
idx
].
lMin
=
0
;
newDevice
->
props
[
idx
].
lMax
=
0xffff
;
newDevice
->
props
[
idx
].
lSaturation
=
0
;
newDevice
->
props
[
idx
].
lDeadZone
=
def_deadzone
>=
0
?
def_deadzone
:
MulDiv
(
newDevice
->
joydev
->
axes
[
i
].
flat
,
0xffff
,
newDevice
->
props
[
idx
].
lDevMax
-
newDevice
->
props
[
idx
].
lDevMin
);
newDevice
->
props
[
idx
].
lDeadZone
=
def_deadzone
;
df
->
rgodf
[
idx
++
].
dwType
=
DIDFT_MAKEINSTANCE
(
newDevice
->
numAxes
++
)
|
DIDFT_ABSAXIS
;
}
...
...
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