mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-02-15 04:05:50 +01:00
Apply patch from bjunglas for issue 42 to allow 3D Connexions space navigator to be detected on osx
This commit is contained in:
parent
bfce766c46
commit
d4a1fd4ae6
|
|
@ -238,6 +238,10 @@ public final class OSXEnvironmentPlugin extends ControllerEnvironment implements
|
|||
Controller joystick = createControllerFromDevice(device, elements, Controller.Type.STICK);
|
||||
if (joystick != null)
|
||||
controllers.add(joystick);
|
||||
} else if (usage_pair.getUsagePage() == UsagePage.GENERIC_DESKTOP && usage_pair.getUsage() == GenericDesktopUsage.MULTI_AXIS_CONTROLLER) {
|
||||
Controller multiaxis = createControllerFromDevice(device, elements, Controller.Type.STICK);
|
||||
if (multiaxis != null)
|
||||
controllers.add(multiaxis);
|
||||
} else if (usage_pair.getUsagePage() == UsagePage.GENERIC_DESKTOP && usage_pair.getUsage() == GenericDesktopUsage.GAME_PAD) {
|
||||
Controller game_pad = createControllerFromDevice(device, elements, Controller.Type.GAMEPAD);
|
||||
if (game_pad != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue