Input cleanup

This commit is contained in:
Anuken 2018-10-15 02:05:25 -03:00
parent 94b6c133f4
commit b6beacf053
2 changed files with 4 additions and 3 deletions

View File

@ -202,9 +202,6 @@ public class DesktopInput extends InputHandler{
Tile selected = tileAt(Gdx.input.getX(), Gdx.input.getY());
int cursorX = tileX(Gdx.input.getX());
int cursorY = tileY(Gdx.input.getY());
//if(cursor == null){
// return;
//}
if(Inputs.keyTap(section, "deselect")){
player.setMineTile(null);

View File

@ -191,6 +191,10 @@ public abstract class InputHandler extends InputAdapter{
consumed = true;
frag.config.hideConfig();
}
if(frag.config.isShown()){
consumed = true;
}
}
//call tapped event