mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 15:35:09 +00:00
Simplification work
This commit is contained in:
parent
1c98b2e5f6
commit
fca57cefd5
7 changed files with 277 additions and 292 deletions
|
|
@ -169,7 +169,7 @@ public class Mouse {
|
|||
currentCursor = cursor;
|
||||
if (currentCursor != null) {
|
||||
nSetNativeCursor(currentCursor.getHandle());
|
||||
currentCursor.setTimeout();
|
||||
currentCursor.setTimeout();
|
||||
} else {
|
||||
nSetNativeCursor(0);
|
||||
}
|
||||
|
|
@ -273,6 +273,13 @@ public class Mouse {
|
|||
public static boolean isCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if buffering is enabled
|
||||
*/
|
||||
public static boolean isBuffered() {
|
||||
return readBuffer != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* "Destroy" the mouse. Remember to reset the native cursor if
|
||||
|
|
@ -515,7 +522,7 @@ public class Mouse {
|
|||
|
||||
/**
|
||||
* Updates the cursor, so that animation can be changed if needed.
|
||||
* This method is called automatically by the window on its update.
|
||||
* This method is called automatically by the window on its update.
|
||||
*/
|
||||
public static void updateCursor() {
|
||||
if(currentCursor != null && currentCursor.hasTimedOut()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue