A click action.

interface Click {
    button:
        | "left"
        | "right"
        | "wheel"
        | "back"
        | "forward";
    type: "click";
    x: number;
    y: number;
}

Properties

Properties

button:
    | "left"
    | "right"
    | "wheel"
    | "back"
    | "forward"

Indicates which mouse button was pressed during the click. One of left, right, wheel, back, or forward.

type: "click"

Specifies the event type. For a click action, this property is always set to click.

x: number

The x-coordinate where the click occurred.

y: number

The y-coordinate where the click occurred.