Added support for more arbitrary number of mouse buttons (though only the