mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 15:35:09 +00:00
Stuff
This commit is contained in:
parent
b5fab4fcc6
commit
c6659f88a4
3 changed files with 165 additions and 0 deletions
|
|
@ -181,6 +181,18 @@ public class Mouse {
|
|||
*/
|
||||
private static native boolean nHasZValue();
|
||||
|
||||
/**
|
||||
* See if a particular mouse button is down.
|
||||
*
|
||||
* @param button The index of the button you wish to test (0..getNumButtons())
|
||||
* @return true if the specified button is down
|
||||
* @see #getNumButtons()
|
||||
*/
|
||||
public static boolean isButtonDown(int button) {
|
||||
assert created : "The mouse has not been created.";
|
||||
return Mouse.button[button];
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable mouse buffering. Must be called after the mouse is created.
|
||||
* @return the size of the mouse buffer in events, or 0 if no buffering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue