Class MouseEvent
Version added: before 9.5
The MouseEvent class is provided to your script when a mouse event occurs. It contains information about the event.
Properties of MouseEvent:
| Name | Type | Description | Ver |
| altKey | bool | True if the alt key is down, otherwise false. | < 9.5 |
| ctrlKey | bool | True if the ctrl key is down, otherwise false. | < 9.5 |
| doubleClick | bool | < 9.5 | |
| drawingStartVec | Vector2 | Added in version 11 | 11.0 |
| drawingVec | Vector2 | Added in version 11 | 11.0 |
| eraser | bool | Added in version 10 | 10.0 |
| isPenEvent | bool | Added in version 14.4 | 14.4 |
| mouseBut | uint32 | See Mouse button constants | 14.4 |
| penPressure | real | 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. | < 9.5 |
| pt | Point | The pixel location of the current mouse event. | < 9.5 |
| shiftKey | bool | True if the shift key is down, otherwise false. | < 9.5 |
| startPt | Point | The pixel location of the initial mouse down event. | < 9.5 |
| startVec | Vector2 | The 2D layer location of the initial mouse down event. | < 9.5 |
| vec | Vector2 | The 2D layer location of the current mouse event. | < 9.5 |
| view | MohoView | A reference to the Moho editing view. | < 9.5 |