title: Really stuck on Android/Java. Touch Event on a Sprite button to perform specific action
body: <p>I have been really stuck on this for the past day or so and I could really use somebody's input as to where I'm going wrong </p>
  
  <p>So I have a 'Play Game' image, I'm loading it into my game as follows:</p>
  
  <pre><code>playGame = new SimpleControl(250.0f, 225.0f, 140.0f, 30.0f, "PlayBtn", this);
  </code></pre>
  
  <p>The SimpleControl object looks like this:</p>
  
  <pre><code>public SimpleControl(float x, float y, float width, float height,
                       String bitmapName, GameScreen gameScreen) {
      super(x, y, width, height, gameScreen.getGame().getAssetManager()
              .getBitmap(bitmapName), gameScreen);
  
  public boolean isActivated() {
  
      // Consider any touch events occurring in this update
      Input input = mGameScreen.getGame().getInput();
  
      // Check if any of the touch events were on this control
      BoundingBox bound = getBound();
      for (int idx = 0; idx &lt; TouchHandler.MAX_TOUCHPOINTS; idx++) {
          if (input.existsTouch(idx)) {
              if (bound.contains(input.getTouchX(idx), input.getTouchY(idx))) {
                  return true; }}}
  return false; }
  </code></pre>
  
  <p>I have an update method in my Game class which goes like this:</p>
  
  <pre><code>Input input = mGame.getInput();
      List&lt;TouchEvent&gt; touchEvents = input.getTouchEvents();
      if (touchEvents.size() &gt; 0) {
          TouchEvent touchevent = touchEvents.get(0);
          {
              if (playGame.isActivated()) {
                  mGame.getScreenManager().removeScreen(this.getName());
                  AboutScreen aboutScreen = new AboutScreen(mGame);
                  mGame.getScreenManager().addScreen(aboutScreen);
              }
  </code></pre>
  
  <p>Unfortunately when I'm running this, the button does not pick up any touch event but there's a little section of the screen that does:
  <a href="http://i.imgur.com/R4nVIRP.png" rel="nofollow">http://i.imgur.com/R4nVIRP.png</a></p>
  
  <pre><code>BoundingBox.java:
  public BoundingBox(float x, float y, float halfWidth, float halfHeight) {
      this.x = x;
      this.y = y;
      this.halfWidth = halfWidth;
      this.halfHeight = halfHeight;
  }
  
  public boolean contains(float x, float y) {
      return (this.x - this.halfWidth &lt; x &amp;&amp; this.x + this.halfWidth &gt; x
              &amp;&amp; this.y - this.halfHeight &lt; y &amp;&amp; this.y + this.halfHeight &gt; y);
  }
  </code></pre>
  
  <p>Thank you in advance :)</p>