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
14e9ee55
Commit
14e9ee55
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: Set the amount of POVs in the caps.
parent
8c1be245
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+8
-1
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
14e9ee55
...
...
@@ -973,7 +973,7 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities(
LPDIDEVCAPS
lpDIDevCaps
)
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
int
i
,
axes
,
buttons
;
int
i
,
axes
,
buttons
,
povs
;
TRACE
(
"%p->(%p)
\n
"
,
iface
,
lpDIDevCaps
);
...
...
@@ -997,12 +997,19 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities(
for
(
i
=
0
;
i
<
ABS_MAX
;
i
++
)
if
(
test_bit
(
This
->
joydev
->
absbits
,
i
))
axes
++
;
buttons
=
0
;
for
(
i
=
0
;
i
<
KEY_MAX
;
i
++
)
if
(
test_bit
(
This
->
joydev
->
keybits
,
i
))
buttons
++
;
povs
=
0
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
if
(
test_bit
(
This
->
joydev
->
absbits
,
ABS_HAT0X
+
(
i
<<
1
))
&&
test_bit
(
This
->
joydev
->
absbits
,
ABS_HAT0Y
+
(
i
<<
1
)))
{
povs
++
;
}
}
if
(
This
->
has_ff
)
lpDIDevCaps
->
dwFlags
|=
DIDC_FORCEFEEDBACK
;
lpDIDevCaps
->
dwAxes
=
axes
;
lpDIDevCaps
->
dwButtons
=
buttons
;
lpDIDevCaps
->
dwPOVs
=
povs
;
return
DI_OK
;
}
...
...
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