Add limited support for multi-buttoned mouse control

I'm not able to test this with a stylus. I don't know whether any manufacturers have custom implementations with which this could cause problems.