mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
fix: escape testing
This commit is contained in:
parent
972df2fe53
commit
5d4f778e5b
1 changed files with 5 additions and 2 deletions
|
|
@ -136,6 +136,11 @@ public class MouseTest {
|
|||
}
|
||||
|
||||
Mouse.poll();
|
||||
Keyboard.poll();
|
||||
|
||||
if(Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
position.x += Mouse.dx;
|
||||
position.y -= Mouse.dy;
|
||||
|
|
@ -156,8 +161,6 @@ public class MouseTest {
|
|||
render();
|
||||
|
||||
gl.swapBuffers();
|
||||
|
||||
Keyboard.poll();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue