> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/events/mouseclickedevent.md).

# MouseClickedEvent

Gets called when the mouse is clicked.

### Extends

* [`CancellableEvent`](/newgen/api/breeze/event/cancellableevent.md)

### Methods

#### cancel()

> **cancel**(): `void`

Cancels the event.

**Returns**

`void`

**Inherited from**

[`CancellableEvent`](/newgen/api/breeze/event/cancellableevent.md).[`cancel`](/newgen/api/breeze/event/cancellableevent.md#cancel)

***

#### getButton()

> **getButton**(): [`MouseButton`](/newgen/api/enum_types/mousebutton.md)

Gets the button that was clicked.

**Returns**

[`MouseButton`](/newgen/api/enum_types/mousebutton.md)

The button.

***

#### isCancelled()

> **isCancelled**(): `boolean`

**Returns**

`boolean`

If the event is cancelled or not.

**Inherited from**

[`CancellableEvent`](/newgen/api/breeze/event/cancellableevent.md).[`isCancelled`](/newgen/api/breeze/event/cancellableevent.md#iscancelled)
