mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-02 03:24:10 +01:00
using grabbed mode
This commit is contained in:
parent
47200a16c7
commit
7aa6e52e4b
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue