@Override public void onPointerEnd(float x, float y) { pressed = false; if (pointInButton(x, y) && clickHandler != null) { ClickEvent click = new ClickEvent(); click.sender = this; clickHandler.onClick(click); } }