From 1766ed9b4b99f7a9188f7a9d5ac9717d0c805a15 Mon Sep 17 00:00:00 2001 From: endolf Date: Wed, 15 Jul 2009 16:19:15 +0000 Subject: Apply patch from bjunglas for issue 42 to allow 3D Connexions space navigator to be detected on osx git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@227 e343933a-64c8-49c5-92b1-88f2ce3e89e8 --- plugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java b/plugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java index c900279..b20c428 100755 --- a/plugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java +++ b/plugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java @@ -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) -- cgit v1.2.3