aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/OSX
diff options
context:
space:
mode:
authorendolf <[email protected]>2007-06-28 20:37:24 +0000
committerendolf <[email protected]>2007-06-28 20:37:24 +0000
commit56e0e6811b57f4628810b47122ce302e3da4094b (patch)
tree19a2b4b1146c92b43c9922a3ca3d49980a68df1a /plugins/OSX
parent8f42349adc3e5dd4998ad120c72386808c30be09 (diff)
Make the API docs and the code match for the Mouse.get<button> methods. Add the methods that we actually wanted to be there.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@189 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/OSX')
-rwxr-xr-xplugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java2
1 files changed, 1 insertions, 1 deletions
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 9ba03a1..cc9289b 100755
--- a/plugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java
+++ b/plugins/OSX/src/java/net/java/games/input/OSXEnvironmentPlugin.java
@@ -191,7 +191,7 @@ public final class OSXEnvironmentPlugin extends ControllerEnvironment implements
Component[] components_array = new Component[components.size()];
components.toArray(components_array);
Mouse mouse = new OSXMouse(device, queue, components_array, new Controller[]{}, new Rumbler[]{});
- if (mouse.getLeft() != null && mouse.getX() != null && mouse.getY() != null) {
+ if (mouse.getPrimaryButton() != null && mouse.getX() != null && mouse.getY() != null) {
return mouse;
} else {
queue.release();