This is probably a simple question but I have not been able to figure it out.
I want to be able to implement implement a hierarchical processing of mouse events. For instance, I would like to be able to press on the middle mouse button and then and only then rotate the camera around its position.
Can anyone indicate how to achieve this or point towards some example?