class MouseEvent
The MouseEvent class is provided to your script when a mouse event occurs. It contains information about the event.
Member Variables
view (MohoView)
A reference to the Moho editing view.
pt (LM_Point)
The pixel location of the current mouse event.
startPt (LM_Point)
The pixel location of the initial mouse down event.
vec (LM_Vector2)
The 2D layer location of the current mouse event.
startVec (LM_Vector2)
The 2D layer location of the initial mouse down event.
shiftKey (bool)
True if the shift key is down, otherwise false.
ctrlKey (bool)
True if the ctrl key is down, otherwise false.
altKey (bool)
True if the alt key is down, otherwise false.
penPressure (float)
The current pen pressure (if a drawing tablet is being used). Pen pressure can vary from 0.0 to 1.0. If the user is working with a mouse, and not a drawing tablet, the pen pressure will always be 0.0.
class MouseEvent { MohoView *view; LM_Point pt; LM_Point startPt; LM_Vector2 vec; LM_Vector2 startVec; bool shiftKey; bool ctrlKey; bool altKey; real penPressure; bool doubleClick; };