winejoystick.drv/joystick_osx.c: Adds multi-axis controller.
Signed-off-by: David Lawrie <david.dljunk@gmail.com> Signed-off-by: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5098bddf90
commit
e06bbf0d54
|
@ -263,7 +263,7 @@ static CFIndex find_top_level(IOHIDDeviceRef hid_device, CFMutableArrayRef main_
|
||||||
int usage = IOHIDElementGetUsage(element);
|
int usage = IOHIDElementGetUsage(element);
|
||||||
|
|
||||||
if (usage_page == kHIDPage_GenericDesktop &&
|
if (usage_page == kHIDPage_GenericDesktop &&
|
||||||
(usage == kHIDUsage_GD_Joystick || usage == kHIDUsage_GD_GamePad))
|
(usage == kHIDUsage_GD_Joystick || usage == kHIDUsage_GD_GamePad || usage == kHIDUsage_GD_MultiAxisController))
|
||||||
{
|
{
|
||||||
CFArrayAppendValue(main_elements, element);
|
CFArrayAppendValue(main_elements, element);
|
||||||
total++;
|
total++;
|
||||||
|
@ -283,7 +283,7 @@ static CFIndex find_top_level(IOHIDDeviceRef hid_device, CFMutableArrayRef main_
|
||||||
static int find_osx_devices(void)
|
static int find_osx_devices(void)
|
||||||
{
|
{
|
||||||
IOHIDManagerRef hid_manager;
|
IOHIDManagerRef hid_manager;
|
||||||
int usages[] = { kHIDUsage_GD_Joystick, kHIDUsage_GD_GamePad };
|
int usages[] = { kHIDUsage_GD_Joystick, kHIDUsage_GD_GamePad, kHIDUsage_GD_MultiAxisController };
|
||||||
int i;
|
int i;
|
||||||
CFDictionaryRef matching_dicts[sizeof(usages) / sizeof(usages[0])];
|
CFDictionaryRef matching_dicts[sizeof(usages) / sizeof(usages[0])];
|
||||||
CFArrayRef matching;
|
CFArrayRef matching;
|
||||||
|
|
Loading…
Reference in New Issue