Hi, i have some little problems with the mouse :
1/ I want to hide the mouse cursor. So i did :
1
| Mouse.setNativeCursor(null); |
There is not exception but the mouse still show.
2/ I want to change screen resolution :
1 2 3 4 5 6 7 8 9 10
| ... Display.setDisplayMode(displayMode); ... GL11.glViewport(0,0,displayMode.getWidth(),displayMode.getHeight()); GL11.glMatrixMode(GL11.GL_PROJECTION); GL11.glLoadIdentity(); GLU.gluOrtho2D(0.0f, 800, 0.0f, 600); GL11.glMatrixMode(GL11.GL_MODELVIEW); GL11.glLoadIdentity(); ... |
The new resolution works fine but the Mouse.getX() and Mouse.getY() do not return where the mouse is.
(It is like the mouse use the old resolution).
I try to destroy the mouse and recreate it after the resolution change but it is the same...