Search code examples
javaslick2d

Slick-2D: Change back to default OS cursor


I have modified my cursor with

cotainer.setMouseCursor(Image image, int hotSpotX, int hotSpotY)

How do I change it back to the system default after I've set it?

Thanks.


Solution

  • try container.setMouseCursor(org.lwjgl.input.Cursor.CURSOR_8_BIT_ALPHA, int hotSpotX, int hotSpotY); check if it works, or if it's not exactly what you want..

    EDIT: here container.setDefaultMouseCursor() reference