Added support for right and middle click on pointer+mouse events.