cleanup and fixes

This commit is contained in:
Brian Matzon 2004-12-07 21:44:57 +00:00
parent d8d223964c
commit 8f4b0eb455
1 changed files with 341 additions and 353 deletions

View File

@ -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();
}