A MouseClickEvent is fired if any mouse button is clicked. Only hovered or focused elements can receive such events.

Constructor

new(element:Null<Element>, state:MouseClickEventState, mouseButton:MouseButton)

Methods

Inherited Variables

Defined by MouseButtonEvent

@:paramfinalmouseButton:MouseButton

The mouse button that triggered this event.

Defined by Event

finalelement:Null<Element>

The element that receives this event. If null, this event is not dispatched.

privatefinalstate:Int

Inherited Methods