added support for all 3 mouse buttons