title: getting unnecessary touch events from LIBGDX
body: <p>In order to build a tic-tac-toe game for testing, I have following routine. But problem is that I am getting too many events for just one touch. I suspect isTouched() returns all of down, up, and move. Is there any way to just get up event?</p>
  
  <p>UPDATE: Resolved the issue by employing justTouched() instead.</p>
  
  <pre><code>@Override
  public void render() {
      // we update the game state so things move.
      updateGame();
  
      // First we clear the screen
      GL10 gl = Gdx.graphics.getGL10();
      gl.glViewport(0, 0, width, height);
      gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
  
      // Next we update the camera and set the camera matrix
      camera.update();
      camera.apply(Gdx.gl10);
  
  
      ...       
  }
  private void updateGame() {
      // the delta time so we can do frame independant time based movement
      float deltaTime = Gdx.graphics.getDeltaTime();
  
  
      // Has the user touched the screen? then position the paddle
      if (Gdx.input.isTouched() &amp;&amp; !isProcess) {
          // get the touch coordinates and translate them
          // to the game coordinate system.
          isProcess=true;
          int width = Gdx.graphics.getWidth();
          int height = Gdx.graphics.getHeight();
          int offx=-width/2;
          int offy=-height/2;
          float x = Gdx.input.getX();
          float y = Gdx.input.getY();
          float touchX = 480 * (x
                  / (float) width - 0.5f);
          float touchY = 320 * (0.5f - y
                  / (float) height);
          for(int i=0;i&lt;3;i++) {
              for(int j=0;j&lt;3;j++)
              {
                  if(touchX &gt;= offx+i*width/3 &amp;&amp; touchX &lt; offx+(i+1)*width/3 &amp;&amp;
                          touchY &gt;= offy+j*height/3 &amp;&amp; touchY &lt; offy+(j+1)*height/3)
                  {
                      if(isCurrentO)
                          data[i][j]=CellStatus.O;
                      else
                          data[i][j]=CellStatus.X;
                      isCurrentO=!isCurrentO;
                      break;
                  }
              }
          }
          isProcess=false;
      }
  
  }
  </code></pre>