|
|
@ -153,14 +153,17 @@ public class LwjglMouseInput implements MouseInput { |
|
|
|
|
|
|
|
|
|
|
|
public void setNativeCursor(JmeCursor jmeCursor) { |
|
|
|
public void setNativeCursor(JmeCursor jmeCursor) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Cursor newCursor = new Cursor( |
|
|
|
Cursor newCursor = null; |
|
|
|
jmeCursor.getWidth(), |
|
|
|
if (jmeCursor != null) { |
|
|
|
jmeCursor.getHeight(), |
|
|
|
newCursor = new Cursor( |
|
|
|
jmeCursor.getXHotSpot(), |
|
|
|
jmeCursor.getWidth(), |
|
|
|
jmeCursor.getYHotSpot(), |
|
|
|
jmeCursor.getHeight(), |
|
|
|
jmeCursor.getNumImages(), |
|
|
|
jmeCursor.getXHotSpot(), |
|
|
|
jmeCursor.getImagesData(), |
|
|
|
jmeCursor.getYHotSpot(), |
|
|
|
jmeCursor.getImagesDelay()); |
|
|
|
jmeCursor.getNumImages(), |
|
|
|
|
|
|
|
jmeCursor.getImagesData(), |
|
|
|
|
|
|
|
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); |
|
|
|