Added a way of detecting left or right mouse clicks.