Interface RecordedMouseEvent

Mouse movement and clicks.

interface RecordedMouseEvent {
    type: "mouse";
    mouseEventType: MouseEventType;
    time: EventTime;
    modifiers: InputModifier[];
    x: number;
    y: number;
    button?: MouseButton;
    cursorType: CursorType;
    targetsCurrentProcess: boolean;
}

Properties

type: "mouse"

Discriminator marking this as a mouse event.

mouseEventType: MouseEventType

Type of mouse event this is.

time: EventTime

Time the event occurred in the recording.

modifiers: InputModifier[]

Input modifier keys (like shift, option, command, etc) pressed during this event.

Possible values will appear at most once, no duplicate values will be present.

x: number

X-axis position of the mouse cursor relative to the top left of recorded area, ranging from 0 to 1.

y: number

Y-axis position of the mouse cursor relative to the top left of recorded area, ranging from 0 to 1.

button?: MouseButton

The relevant mouse button involved in this event.

cursorType: CursorType

The type of cursor shown during this event.

targetsCurrentProcess: boolean

Marks a click on the recording app.

Generated using TypeDoc