title: touchUpInside and touchUpOutside of a button in libgdx
body: <p>LibGDX offers event listeners that we can attach to buttons. Inside listener there is a method <code>touchUp()</code> we can override. I come from iOS dev and in iOS there was an option <code>touchUpInside</code> and <code>touchUpOutside</code>. Namely, if the user released the finger inside the area of a button <code>touchUpInside</code> was called and if the user lifted finger outside the button area, <code>touchUpOutside</code> was called. Does libGDX offer similar functionality or is up to developers to implement that? The default libgdx <code>touchUp</code> does not differentiate these to scenarios.</p>
  
  <p>edit: I used this code but this is extremely imprecise. I'm getting a lot of false touchUp's</p>
  
  <pre><code>public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
                  super.touchUp(event, x, y, pointer, button);
              if(x&lt;button.getX()||x&gt;(button.getX()+button.getWidth())||y&lt;button.getY()||y&gt;(button.getY()+button.getHeight())){
                  System.out.println("retuuurn");
                  return;
              }
  }
  </code></pre>