Added support for double-clicks, through a new "clicks" field in the mouse button event.