using grabbed mode

This commit is contained in:
Brian Matzon 2004-12-07 21:56:07 +00:00
parent 47200a16c7
commit 7aa6e52e4b
1 changed files with 1 additions and 2 deletions

View File

@ -116,6 +116,7 @@ public class MouseTest {
Display.setFullscreen(FULLSCREEN);
Display.setVSyncEnabled(true);
Display.create();
Mouse.setGrabbed(true);
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
@ -187,8 +188,6 @@ public class MouseTest {
handleKeyboard();
handleMouse();
System.out.println(Mouse.getX() + ", " + Mouse.getY());
// pause and continue if minimized
if(!Display.isVisible()) {
if(Display.isDirty()) {