Make the API docs and the code match for the Mouse.get<button> methods. Add the methods that we actually wanted to be there.

This commit is contained in:
endolf 2007-06-28 20:37:24 +00:00
parent 10214031df
commit fd2a1b073d
5 changed files with 43 additions and 10 deletions

View file

@ -193,7 +193,7 @@ public final class LinuxEnvironmentPlugin extends ControllerEnvironment implemen
private final static Mouse createMouseFromDevice(LinuxEventDevice device, Component[] components) throws IOException {
Mouse mouse = new LinuxMouse(device, components, new Controller[]{}, device.getRumblers());
if (mouse.getX() != null && mouse.getY() != null && mouse.getLeft() != null)
if (mouse.getX() != null && mouse.getY() != null && mouse.getPrimaryButton() != null)
return mouse;
else
return null;