cleanup and fixes
This commit is contained in:
parent
d8d223964c
commit
8f4b0eb455
|
@ -268,13 +268,6 @@ public class HWCursorTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processMouse() {
|
private void processMouse() {
|
||||||
int dx = Mouse.getDX();
|
|
||||||
int dy = Mouse.getDY();
|
|
||||||
|
|
||||||
if (dx != 0 || dy != 0) {
|
|
||||||
//mouse_x += dx;
|
|
||||||
//mouse_y += dy;
|
|
||||||
}
|
|
||||||
mouse_x = Mouse.getX();
|
mouse_x = Mouse.getX();
|
||||||
mouse_y = Mouse.getY();
|
mouse_y = Mouse.getY();
|
||||||
|
|
||||||
|
@ -353,8 +346,6 @@ public class HWCursorTest {
|
||||||
while(Keyboard.next()) {
|
while(Keyboard.next()) {
|
||||||
if(Keyboard.getEventKey() == Keyboard.KEY_SPACE && Keyboard.getEventKeyState()) {
|
if(Keyboard.getEventKey() == Keyboard.KEY_SPACE && Keyboard.getEventKeyState()) {
|
||||||
Mouse.setGrabbed(!Mouse.isGrabbed());
|
Mouse.setGrabbed(!Mouse.isGrabbed());
|
||||||
//mouse_x = Mouse.getX();
|
|
||||||
//mouse_y = Mouse.getY();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -398,10 +389,7 @@ public class HWCursorTest {
|
||||||
* Test entry point
|
* Test entry point
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println(
|
System.out.println("Change between fullscreen and windowed mode, by pressing F and W respectively. Enable hw cursor with N and disable it with M.");
|
||||||
"Change between fullscreen and windowed mode, by pressing F and W respectively. Enable hw cursor with N and disable it with M.");
|
|
||||||
System.out.println(
|
|
||||||
"Move quad using arrowkeys, and change rotation using +/-");
|
|
||||||
HWCursorTest cursorTest = new HWCursorTest();
|
HWCursorTest cursorTest = new HWCursorTest();
|
||||||
cursorTest.execute();
|
cursorTest.execute();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue