Fixed some Android bugs

This commit is contained in:
Anuken
2017-07-16 17:10:17 -04:00
parent c3712d6f78
commit ed6b49788d
3 changed files with 8 additions and 2 deletions
@@ -119,6 +119,9 @@ public class AndroidInput extends InputAdapter{
lmousex = Gdx.input.getX(0);
lmousey = Gdx.input.getY(0);
player.breaktime = 0;
mousex = Mathf.clamp(mousex, 0, Gdx.graphics.getWidth());
mousey = Mathf.clamp(mousey, 0, Gdx.graphics.getHeight());
}
}