Factor out button bit-testing logic to enable button maps.
Factor out button bit-testing logic to enable button maps.

playasophy/wonderdome,playasophy/wonderdome,playasophy/wonderdome,playasophy/wonderdome