Fixed the mouse y invert thingy
This commit is contained in:
parent
5d07cd2dee
commit
575e0158ea
3 changed files with 8 additions and 9 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue