diff options
author | Joshua Slack <[email protected]> | 2018-01-15 12:06:45 -0600 |
---|---|---|
committer | Joshua Slack <[email protected]> | 2018-01-15 12:06:45 -0600 |
commit | 2817b5e3a39ca1c9fe42bdfe344db3400ff83264 (patch) | |
tree | 161cea1e12adab75294472d9c9ed645afe13a849 /ardor3d-awt/src | |
parent | ec71ecdbbb1437dd57a0f47a1f70d36a25529038 (diff) |
Update to mouse manager allowing null to be passed to setCursor to signify clearing the cursor
Diffstat (limited to 'ardor3d-awt/src')
-rw-r--r-- | ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseManager.java | 2 |
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 { |