aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-awt
diff options
context:
space:
mode:
authorJoshua Slack <[email protected]>2018-01-15 12:06:45 -0600
committerJoshua Slack <[email protected]>2018-01-15 12:06:45 -0600
commit2817b5e3a39ca1c9fe42bdfe344db3400ff83264 (patch)
tree161cea1e12adab75294472d9c9ed645afe13a849 /ardor3d-awt
parentec71ecdbbb1437dd57a0f47a1f70d36a25529038 (diff)
Update to mouse manager allowing null to be passed to setCursor to signify clearing the cursor
Diffstat (limited to 'ardor3d-awt')
-rw-r--r--ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseManager.java b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseManager.java
index 194b729..9f5a816 100644
--- a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseManager.java
+++ b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseManager.java
@@ -62,7 +62,7 @@ public class AwtMouseManager implements MouseManager {
}
public void setCursor(final MouseCursor cursor) {
- if (cursor == MouseCursor.SYSTEM_DEFAULT) {
+ if (cursor == MouseCursor.SYSTEM_DEFAULT || cursor == null) {
if (_grabbedState == GrabbedState.GRABBED) {
_pregrabCursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
} else {