Skip to content

types.mouse_event ​

Event details for mouse input

Properties ​

NameDescription
positiontype: vector2 The scaled mouse position
buttontype: number The SDL mouse button (1 = left, 2 = middle, 3 = right, 4+ = extra buttons; -1 for scroll)
statetype: string The mouse interaction state ("click", "released", "scroll")
scroll_xtype: number The scroll delta on X axis
scroll_ytype: number The scroll delta on Y axis