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