Skip to content
Permalink
Browse files
Merge pull request #5860 from jturcotte/fix-macos-nswitch-axis
Fix axis not working with Switch Pro controller on macOS
  • Loading branch information
phire committed Aug 7, 2017
2 parents bc11fad + 200fb26 commit 3b5cad6
Showing 1 changed file with 4 additions and 1 deletion.
@@ -39,7 +39,10 @@
}

// Axes
NSDictionary* axisDict = @{ @kIOHIDElementTypeKey : @(kIOHIDElementTypeInput_Misc) };
NSDictionary* axisDict = @{
@kIOHIDElementTypeKey : @(kIOHIDElementTypeInput_Misc),
@kIOHIDElementUsagePageKey : @(kHIDPage_GenericDesktop)
};

CFArrayRef axes =
IOHIDDeviceCopyMatchingElements(m_device, (CFDictionaryRef)axisDict, kIOHIDOptionsTypeNone);

0 comments on commit 3b5cad6

Please sign in to comment.