Fixed the mouse y invert thingy

This commit is contained in:
Ziver Koc 2007-04-15 19:27:36 +00:00
parent 5d07cd2dee
commit 575e0158ea
3 changed files with 8 additions and 9 deletions

View file

@ -76,7 +76,7 @@ public abstract class MouseInput extends Input{
int mouseDW = Mouse.getDWheel();
if (mouseDX != 0 || mouseDY != 0 || mouseDW != 0) {
cursorX += mouseDX;
cursorY += mouseDY;
cursorY -= mouseDY;
if (cursorX < 0) {
cursorX = 0;
}
@ -102,8 +102,7 @@ public abstract class MouseInput extends Input{
}
if(cursor != null){
cursor.setLocation(new Vector2f(cursorX,
LWJGLGameWindow.getHeight()-cursorY));
cursor.setLocation(new Vector2f(cursorX, cursorY));
}
}