Created
April 17, 2013 22:01
-
-
Save alexey-dc/5408137 to your computer and use it in GitHub Desktop.
Button API
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The production stuff looks great! Only I would change it to accept an
onTouchDown(button)and (optional)onTouchUp(button)handler.In my opinion, the helper and debug-oriented functionality don't belong in the shared API. It doesn't take very long to create your own helper/debug methods on a per-game basis, and honestly, I haven't run into many situations where I actually needed buttons to debug a game.