|
|
|
@ -153,7 +153,9 @@ public class LwjglMouseInput implements MouseInput { |
|
|
|
|
|
|
|
|
|
public void setNativeCursor(JmeCursor jmeCursor) { |
|
|
|
|
try { |
|
|
|
|
Cursor newCursor = new Cursor( |
|
|
|
|
Cursor newCursor = null; |
|
|
|
|
if (jmeCursor != null) { |
|
|
|
|
newCursor = new Cursor( |
|
|
|
|
jmeCursor.getWidth(), |
|
|
|
|
jmeCursor.getHeight(), |
|
|
|
|
jmeCursor.getXHotSpot(), |
|
|
|
@ -161,6 +163,7 @@ public class LwjglMouseInput implements MouseInput { |
|
|
|
|
jmeCursor.getNumImages(), |
|
|
|
|
jmeCursor.getImagesData(), |
|
|
|
|
jmeCursor.getImagesDelay()); |
|
|
|
|
} |
|
|
|
|
Mouse.setNativeCursor(newCursor); |
|
|
|
|
} catch (LWJGLException ex) { |
|
|
|
|
Logger.getLogger(LwjglMouseInput.class.getName()).log(Level.SEVERE, null, ex); |
|
|
|
|