Lysa  0.0
Lysa 3D Engine
InputEventMouseButton Struct Reference

Detailed Description

Data for a mouse button press or release event.

Lua full name: lysa.InputEventMouseButton

Properties

float2 position
 Mouse position in window coordinates at the time of the event.
 
integer buttonsState
 Bitmask of currently pressed mouse buttons.
 
integer modifiers
 Bitmask of active modifier keys.
 
MouseButton button
 The mouse button that was pressed or released.
 
boolean pressed
 True if the button was pressed, false if released.
 

Property Documentation

float2 position

Mouse position in window coordinates at the time of the event.

integer buttonsState

Bitmask of currently pressed mouse buttons.

integer modifiers

Bitmask of active modifier keys.

MouseButton button

The mouse button that was pressed or released.

boolean pressed

True if the button was pressed, false if released.