Implemented full Android support

This commit is contained in:
Anuken
2017-06-29 14:23:31 -04:00
parent 547c2b9025
commit bca8271c07
13 changed files with 118 additions and 58 deletions

View File

@@ -35,6 +35,7 @@ public class AndroidInput extends InputAdapter{
@Override
public boolean touchDown (int screenX, int screenY, int pointer, int button) {
ui.hideTooltip();
if(pointer == 0){
lmousex = screenX;
lmousey = screenY;
@@ -118,4 +119,13 @@ public class AndroidInput extends InputAdapter{
breaktime = 0;
}
}
public static int touches(){
int sum = 0;
for(int i = 0; i < 10; i ++){
if(Gdx.input.isTouched(i))
sum ++;
}
return sum;
}
}