Remove old input code.
Fix bug in snes-state-events.
Update some comments/docstrings and eliminate some reflection warnings.
Factor out button bit-testing logic to enable button maps.