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
03260f73
Commit
03260f73
authored
Jul 06, 2006
by
Christoph Frick
Committed by
Alexandre Julliard
Jul 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: When handling axes, ignore the ABS_HAT.* as they are handled as POV.
parent
14e9ee55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+21
-2
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
03260f73
...
...
@@ -994,7 +994,19 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities(
lpDIDevCaps
->
dwDevType
=
DIDEVTYPE_JOYSTICK
|
(
DIDEVTYPEJOYSTICK_TRADITIONAL
<<
8
);
axes
=
0
;
for
(
i
=
0
;
i
<
ABS_MAX
;
i
++
)
if
(
test_bit
(
This
->
joydev
->
absbits
,
i
))
axes
++
;
for
(
i
=
0
;
i
<
ABS_MAX
;
i
++
)
{
if
(
!
test_bit
(
This
->
joydev
->
absbits
,
i
))
continue
;
switch
(
i
)
{
case
ABS_HAT0X
:
case
ABS_HAT0Y
:
case
ABS_HAT1X
:
case
ABS_HAT1Y
:
case
ABS_HAT2X
:
case
ABS_HAT2Y
:
case
ABS_HAT3X
:
case
ABS_HAT3Y
:
/* will be handled as POV - see below */
break
;
default:
axes
++
;
}
}
buttons
=
0
;
for
(
i
=
0
;
i
<
KEY_MAX
;
i
++
)
if
(
test_bit
(
This
->
joydev
->
keybits
,
i
))
buttons
++
;
povs
=
0
;
...
...
@@ -1090,8 +1102,15 @@ static HRESULT WINAPI JoystickAImpl_EnumObjects(
ddoi
.
guidType
=
GUID_Slider
;
ddoi
.
dwOfs
=
DIJOFS_SLIDER
(
1
);
break
;
case
ABS_HAT0X
:
case
ABS_HAT0Y
:
case
ABS_HAT1X
:
case
ABS_HAT1Y
:
case
ABS_HAT2X
:
case
ABS_HAT2Y
:
case
ABS_HAT3X
:
case
ABS_HAT3Y
:
/* will be handled as POV - see below */
continue
;
default:
FIXME
(
"unhandled abs axis %d, ignoring!
\n
"
,
i
);
FIXME
(
"unhandled abs axis 0x%02x, ignoring!
\n
"
,
i
);
continue
;
}
ddoi
.
dwType
=
DIDFT_MAKEINSTANCE
(
i
<<
WINE_JOYSTICK_AXIS_BASE
)
|
DIDFT_ABSAXIS
;
/* Linux event force feedback supports only (and always) x and y axes */
...
...
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