Struct InputEventMouse
Base input event type for mouse events.
struct InputEventMouse
;
Stores general mouse events information.
Properties
| Name | Type | Description |
|---|---|---|
buttonMask[get, set]
|
long | The mouse button mask identifier, one of or a bitwise combination of the buttonlist button masks.
|
globalPosition[get, set]
|
Vector2 | The global mouse position relative to the current Viewport when used in Control, otherwise is at 0,0.
|
position[get, set]
|
Vector2 | The local mouse position relative to the Viewport. If used in Control, the position is relative to the current Control which is under the mouse.
|
Methods
| Name | Description |
|---|---|
getButtonMask
|
|
getGlobalPosition
|
|
getPosition
|
|
setButtonMask
|
|
setGlobalPosition
|
|
setPosition
|