TGML Mouse Event Methods
The following table contains an overview of the methods that are specific for the mouse event object:
| Method | Description |
|---|---|
|
getButton() |
Returns an integer describing which button was pressed or released. Applicable for MouseDownEvent and MouseUpEvent. |
|
getClientX() |
Returns the X coordinate of the cursor, relative the origin of the target coordinate system. |
|
getClientY() |
Returns the Y coordinate of the cursor, relative the origin of the target coordinate system. |
|
getCurrentTargetX() |
Returns the X coordinate of the cursor, relative the origin of the current target coordinate system. |
|
getCurrentTargetY() |
Returns the Y coordinate of the cursor, relative the origin of the current target coordinate system. |
|
getCurrentTargetParentX() |
Returns the X coordinate of the cursor, relative the origin of the current target's parent coordinate system. |
|
getCurrentTargetParentY() |
Returns the Y coordinate of the cursor, relative the origin of the current target's parent coordinate system. |
|
getScreenX() |
Returns the X coordinate of the cursor, relative to the origin of the document coordinate system. |
|
getScreenY() |
Returns the Y coordinate of the cursor, relative to the origin of the document coordinate system. |