i am trying to port some python scripts from windows to mac which override Rhino.Input.Custom.GetPoint
and use custom code in the OnMouseDown
and OnMouseMove
events. The problem is, the GetPointMouseEventArgs
do not work as expected. To track down the error, i’ve attached a simple test script which just prints the user action to the Output of the Rhino Python Editor. OnMouseDownTest.py (1.4 KB)
I’ve been reported the following results using the above example script:
- If the user clicks with the left mouse button and no key down, the button reported is
None
, it should be LMB, so it looks likee.LeftButtonDown
does not work. - If the user clicks with the left mouse button while holding Shift key down, the button reported is the right mouse and the key is
None
. (both is wrong) - If the user clicks with the left mouse button while he holds CMD, the button is still
None
and thee.ControlKeyDown
fires (which is expected).
So far, we’ve not tried other combinations, the first obstacle is that it does not detect the mouse button correctly. Is this supposed to work on mac os ?
_
c.