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
6bbec8e6
Commit
6bbec8e6
authored
Mar 11, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: OS/X joystick: Check usage page to avoid odd non-button elements found…
dinput: OS/X joystick: Check usage page to avoid odd non-button elements found on the 360 controller.
parent
c95011dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
joystick_osx.c
dlls/dinput/joystick_osx.c
+7
-0
No files found.
dlls/dinput/joystick_osx.c
View file @
6bbec8e6
...
...
@@ -320,6 +320,13 @@ static void get_osx_device_elements(JoystickImpl *device, int axis_map[8])
{
case
kIOHIDElementTypeInput_Button
:
{
int
usagePage
=
IOHIDElementGetUsagePage
(
tIOHIDElementRef
);
if
(
usagePage
!=
kHIDPage_Button
)
{
/* avoid strange elements found on the 360 controler */
continue
;
}
if
(
buttons
<
128
)
{
CFArrayInsertValueAtIndex
(
device
->
elementCFArrayRef
,
(
axes
+
povs
+
buttons
),
tIOHIDElementRef
);
...
...
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