import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { DispatchMouseEventRequest } = Protocol.Input;
Properties
Type of the mouse event. (DispatchMouseEventRequestType enum)
Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
optional
modifiers: integerBit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
optional
timestamp: TimeSinceEpochTime at which the event occurred.
optional
button: MouseButtonMouse button (default: "none").
optional
buttons: integerA number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
optional
clickCount: integerNumber of times the mouse button was clicked (default: 0).