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
ffbd6a79
Commit
ffbd6a79
authored
Mar 10, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: OS/X joystick add GD_X, GD_Y, GD_Z axes.
parent
87d61ab2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
joystick_osx.c
dlls/dinput/joystick_osx.c
+28
-0
No files found.
dlls/dinput/joystick_osx.c
View file @
ffbd6a79
...
...
@@ -343,6 +343,14 @@ static void get_osx_device_elements(JoystickImpl *device)
povs
++
;
break
;
}
case
kHIDUsage_GD_X
:
case
kHIDUsage_GD_Y
:
case
kHIDUsage_GD_Z
:
{
CFArrayInsertValueAtIndex
(
device
->
elementCFArrayRef
,
axes
,
tIOHIDElementRef
);
axes
++
;
break
;
}
default:
FIXME
(
"Unhandled usage %i
\n
"
,
usage
);
}
...
...
@@ -437,6 +445,26 @@ static void poll_osx_device_state(JoystickGenericImpl *device_in)
pov_idx
++
;
break
;
}
case
kHIDUsage_GD_X
:
case
kHIDUsage_GD_Y
:
case
kHIDUsage_GD_Z
:
{
IOHIDDeviceGetValue
(
tIOHIDDeviceRef
,
tIOHIDElementRef
,
&
valueRef
);
val
=
IOHIDValueGetIntegerValue
(
valueRef
);
switch
(
usage
)
{
case
kHIDUsage_GD_X
:
device
->
generic
.
js
.
lX
=
joystick_map_axis
(
&
device
->
generic
.
props
[
idx
],
val
);
break
;
case
kHIDUsage_GD_Y
:
device
->
generic
.
js
.
lY
=
joystick_map_axis
(
&
device
->
generic
.
props
[
idx
],
val
);
break
;
case
kHIDUsage_GD_Z
:
device
->
generic
.
js
.
lZ
=
joystick_map_axis
(
&
device
->
generic
.
props
[
idx
],
val
);
break
;
}
break
;
}
default:
FIXME
(
"unhandled usage %i
\n
"
,
usage
);
}
...
...
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