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
221708d6
Commit
221708d6
authored
Jan 07, 2018
by
Bob Ziuchkovski
Committed by
Alexandre Julliard
Jan 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Ignore vendor-specific usage pages for joystick elements on Mac.
Signed-off-by:
Bob Ziuchkovski
<
bob.ziuchkovski@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2de3dc3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
joystick_osx.c
dlls/dinput/joystick_osx.c
+7
-1
No files found.
dlls/dinput/joystick_osx.c
View file @
221708d6
...
...
@@ -640,14 +640,20 @@ static void get_osx_device_elements(JoystickImpl *device, int axis_map[8])
{
IOHIDElementRef
element
=
(
IOHIDElementRef
)
CFArrayGetValueAtIndex
(
elements
,
idx
);
int
type
=
IOHIDElementGetType
(
element
);
int
usage_page
=
IOHIDElementGetUsagePage
(
element
);
TRACE
(
"element %s
\n
"
,
debugstr_element
(
element
));
if
(
usage_page
>=
kHIDPage_VendorDefinedStart
)
{
/* vendor pages can repurpose type ids, resulting in incorrect case matches below (e.g. ds4 controllers) */
continue
;
}
switch
(
type
)
{
case
kIOHIDElementTypeInput_Button
:
{
int
usage_page
=
IOHIDElementGetUsagePage
(
element
);
TRACE
(
"kIOHIDElementTypeInput_Button usage_page %d
\n
"
,
usage_page
);
if
(
usage_page
!=
kHIDPage_Button
)
{
...
...
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