title: Button listener in LibGDX
body: <p>I have nearly 100 buttons in my screen. Do I need to do the same for those 100 buttons or is there is any simple way to achieve this. Pelase advice</p>
  
  <pre><code>button1.addListener(new InputListener() {
  public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
          Gdx.app.log("my app", "Pressed"); //** Usually used to start Game, etc. **//
          return true;
  }
  
  public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
          Gdx.app.log("my app", "Released");
  } 
  </code></pre>