cleanup and fixes
This commit is contained in:
parent
d8d223964c
commit
8f4b0eb455
|
@ -268,13 +268,6 @@ public class HWCursorTest {
|
|||
}
|
||||
|
||||
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_y = Mouse.getY();
|
||||
|
||||
|
@ -353,8 +346,6 @@ public class HWCursorTest {
|
|||
while(Keyboard.next()) {
|
||||
if(Keyboard.getEventKey() == Keyboard.KEY_SPACE && Keyboard.getEventKeyState()) {
|
||||
Mouse.setGrabbed(!Mouse.isGrabbed());
|
||||
//mouse_x = Mouse.getX();
|
||||
//mouse_y = Mouse.getY();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -398,10 +389,7 @@ public class HWCursorTest {
|
|||
* Test entry point
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
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.");
|
||||
System.out.println(
|
||||
"Move quad using arrowkeys, and change rotation using +/-");
|
||||
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.");
|
||||
HWCursorTest cursorTest = new HWCursorTest();
|
||||
cursorTest.execute();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue