mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
Input cleanup
This commit is contained in:
@ -202,9 +202,6 @@ public class DesktopInput extends InputHandler{
|
|||||||
Tile selected = tileAt(Gdx.input.getX(), Gdx.input.getY());
|
Tile selected = tileAt(Gdx.input.getX(), Gdx.input.getY());
|
||||||
int cursorX = tileX(Gdx.input.getX());
|
int cursorX = tileX(Gdx.input.getX());
|
||||||
int cursorY = tileY(Gdx.input.getY());
|
int cursorY = tileY(Gdx.input.getY());
|
||||||
//if(cursor == null){
|
|
||||||
// return;
|
|
||||||
//}
|
|
||||||
|
|
||||||
if(Inputs.keyTap(section, "deselect")){
|
if(Inputs.keyTap(section, "deselect")){
|
||||||
player.setMineTile(null);
|
player.setMineTile(null);
|
||||||
|
@ -191,6 +191,10 @@ public abstract class InputHandler extends InputAdapter{
|
|||||||
consumed = true;
|
consumed = true;
|
||||||
frag.config.hideConfig();
|
frag.config.hideConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(frag.config.isShown()){
|
||||||
|
consumed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//call tapped event
|
//call tapped event
|
||||||
|
Reference in New Issue
Block a user