if I override one of RhinoMouseCallBack functions, like OnMouseDown, how do I use the CRhinoMouseCallback::mouse_button variable to filter only left, or only right click? I don`t quite get it…
(Programming in C++)
P.S. How could I control OnMouseDown and OnMouseMove at the same time? (Dragging)
P.P.S. What is the third - UINT - variable in the function arguments?
As for dragging, you first get OnMouseDown, the you get OnMouseMove while dragging and finally you get OnMouseUp when the user stops dragging. All three are called, and you can track the dragging state to start on mouse-down and stop on mouse-up. While the mouse-up has not been fired, you should respond to dragging in mouse-move.