mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-04 14:07:53 +00:00
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:
parent
10214031df
commit
fd2a1b073d
5 changed files with 43 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue