I'm doing this right but it isn't working

I’m trying to create my cursor.


String CURSOR = "c:/cursor.gif";
            int      width = 50, height = 50, x = 25, y=25,
            animations = 1,
            animeDelay = -1;

            int img = render.getImage(CURSOR);

            Cursor cursor = new Cursor(width, height, x, y, animations, img, animeDelay);
            Mouse.setNativeCursor(cursor);

I get a cannot find symbol error.

I have included the appropriate namespaces and the LWJGL library. There should be no problems, the mouse and keyboard work perfectly. There should be no reason why this shouldn’t work.

Which version are you using?
the images & delays (img, animeDelay in you case) arguments should be IntBuffer objects…

Take a look at org.lwjgl.test.input.HWCursorTest in cvs or source distribution

Thank You. I can’t believe I didn’t see this.
Damn am I incompetent. :o

;D I just think you might have been using some old documentation - we USED to have int’s passed around…, so you are excused :slight_smile: