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
66462cb7
Commit
66462cb7
authored
May 31, 2019
by
Tim Schumacher
Committed by
Alexandre Julliard
May 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Check for wheel axes/buttons when finding joysticks.
Signed-off-by:
Tim Schumacher
<
timschumi@gmx.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
307f163f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+10
-2
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
66462cb7
...
...
@@ -234,10 +234,16 @@ static void find_joydevs(void)
/* A true joystick has at least axis X and Y, and at least 1
* button. copied from linux/drivers/input/joydev.c */
if
(
!
test_bit
(
joydev
.
absbits
,
ABS_X
)
||
!
test_bit
(
joydev
.
absbits
,
ABS_Y
)
||
if
(((
!
test_bit
(
joydev
.
absbits
,
ABS_X
)
||
!
test_bit
(
joydev
.
absbits
,
ABS_Y
))
&&
!
test_bit
(
joydev
.
absbits
,
ABS_WHEEL
)
&&
!
test_bit
(
joydev
.
absbits
,
ABS_GAS
)
&&
!
test_bit
(
joydev
.
absbits
,
ABS_BRAKE
))
||
!
(
test_bit
(
joydev
.
keybits
,
BTN_TRIGGER
)
||
test_bit
(
joydev
.
keybits
,
BTN_A
)
||
test_bit
(
joydev
.
keybits
,
BTN_1
)))
test_bit
(
joydev
.
keybits
,
BTN_1
)
||
test_bit
(
joydev
.
keybits
,
BTN_BASE
)
||
test_bit
(
joydev
.
keybits
,
BTN_GEAR_UP
)
||
test_bit
(
joydev
.
keybits
,
BTN_GEAR_DOWN
)))
{
close
(
fd
);
continue
;
...
...
@@ -259,6 +265,8 @@ static void find_joydevs(void)
test_bit
(
joydev
.
keybits
,
BTN_BASE4
)
||
test_bit
(
joydev
.
keybits
,
BTN_BASE5
)
||
test_bit
(
joydev
.
keybits
,
BTN_BASE6
)
||
test_bit
(
joydev
.
keybits
,
BTN_GEAR_UP
)
||
test_bit
(
joydev
.
keybits
,
BTN_GEAR_DOWN
)
||
test_bit
(
joydev
.
keybits
,
BTN_DEAD
);
if
(
!
(
joydev
.
device
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
buf
)
+
1
)))
...
...
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