Simplification work

This commit is contained in:
Caspian Rychlik-Prince 2004-03-26 11:09:39 +00:00
parent 1c98b2e5f6
commit fca57cefd5
7 changed files with 277 additions and 292 deletions

View file

@ -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()) {