Skip to content

ElectronMouseInputEvent

Unofficial

Mouse input event passed to ElectronWebContents.sendInputEvent to inject a trusted pointer event.

Import:

import type { ElectronMouseInputEvent } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ElectronMouseInputEvent extends ElectronInputEvent

Extends: ElectronInputEvent

Properties

PropertyTypeDescription
button?'left' | 'middle' | 'right'The button pressed.
clickCount?numberThe number of consecutive clicks.
globalX?numberThe x coordinate of the pointer relative to the screen.
globalY?numberThe y coordinate of the pointer relative to the screen.
modifiers?Array<
| 'alt'
| 'capsLock'
| 'cmd'
| 'command'
| 'control'
| 'ctrl'
| 'isAutoRepeat'
| 'isKeypad'
| 'left'
| 'leftButtonDown'
| 'meta'
| 'middleButtonDown'
| 'numLock'
| 'right'
| 'rightButtonDown'
| 'shift'
>
The modifier keys held during the event.
(Inherited from ElectronInputEvent)
movementX?numberThe x movement delta since the previous mouse event.
movementY?numberThe y movement delta since the previous mouse event.
type'contextMenu' | 'mouseDown' | 'mouseEnter' | 'mouseLeave' | 'mouseMove' | 'mouseUp' | 'mouseWheel'The type of the mouse event.
xnumberThe x coordinate (web-contents DIP) of the pointer.
ynumberThe y coordinate (web-contents DIP) of the pointer.

Links to this page: