mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #5860 from jturcotte/fix-macos-nswitch-axis
Fix axis not working with Switch Pro controller on macOS
This commit is contained in:
commit
3b5cad6682
@ -39,7 +39,10 @@ Joystick::Joystick(IOHIDDeviceRef device, std::string name)
|
||||
}
|
||||
|
||||
// Axes
|
||||
NSDictionary* axisDict = @{ @kIOHIDElementTypeKey : @(kIOHIDElementTypeInput_Misc) };
|
||||
NSDictionary* axisDict = @{
|
||||
@kIOHIDElementTypeKey : @(kIOHIDElementTypeInput_Misc),
|
||||
@kIOHIDElementUsagePageKey : @(kHIDPage_GenericDesktop)
|
||||
};
|
||||
|
||||
CFArrayRef axes =
|
||||
IOHIDDeviceCopyMatchingElements(m_device, (CFDictionaryRef)axisDict, kIOHIDOptionsTypeNone);
|
||||
|
Loading…
x
Reference in New Issue
Block a user