Keep better tally of "buttons" bitmask

Fixes #67 track stops working after right-mouse click
Merge pull request #71 from Polymer/button-mask

Keep better tally of "buttons" bitmask