[v5 5/5] winejoystick.drv/joystick_osx.c: ignore feature elements

David Lawrie david.dljunk at gmail.com
Tue Jun 14 22:33:52 CDT 2016


"Describes input and output elements not intended for consumption by the
end user."
Ignore, as otherwise, comes up as a FIXME in Trace logs.

Source:
https://developer.apple.com/library/mac/documentation/IOKit/Reference/
IOHIDKeys_iokit_header_reference/#//apple_ref/c/tdef/IOHIDElementType

Tested on OS X 10.10.5.

Signed-off-by: David Lawrie <david.dljunk at gmail.com>
---
 dlls/winejoystick.drv/joystick_osx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/winejoystick.drv/joystick_osx.c b/dlls/winejoystick.drv/joystick_osx.c
index ad82dd7..12ccff7 100644
--- a/dlls/winejoystick.drv/joystick_osx.c
+++ b/dlls/winejoystick.drv/joystick_osx.c
@@ -514,6 +514,9 @@ static void collect_joystick_elements(joystick_t* joystick, IOHIDElementRef coll
                 }
                 break;
             }
+            case kIOHIDElementTypeFeature:
+                /* Describes input and output elements not intended for consumption by the end user. Ignoring. */
+                break;
             default:
                 FIXME("Unhandled type %i\n",type);
                 break;
-- 
1.7.12.4 (Apple Git-37)




More information about the wine-patches mailing list