android - Gdx.input.justTouched() is not working on all devices -


i developing game in libgdx android device. see strange issue in using gdx.input.justtouched(). working in device , not in device. please me if code needs correction?

@override public void create() {      gdx.input.setinputprocessor(this);     gdx.input.setcatchbackkey(true);   }  public void render(spritebatch sb) {      if (gdx.input.justtouched()){         system.out.println("inside : "  );         dragnew = new vector2(gdx.input.getx(), gdx.input.gety());         dragold = dragnew;      } } 


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -