Implemented full Android support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user