Struct InputEventMouse

Base input event type for mouse events.

struct InputEventMouse ;

Stores general mouse events information.

Properties

NameTypeDescription
buttonMask[get, set] longThe mouse button mask identifier, one of or a bitwise combination of the buttonlist button masks.
globalPosition[get, set] Vector2The global mouse position relative to the current Viewport when used in Control.guiInput, otherwise is at 0,0.
position[get, set] Vector2The local mouse position relative to the Viewport. If used in Control.guiInput, the position is relative to the current Control which is under the mouse.

Methods

NameDescription
getButtonMask
getGlobalPosition
getPosition
setButtonMask
setGlobalPosition
setPosition