type MouseEventState = {
mouse: MouseState & { stopped: boolean },
index: number,
hovered: boolean,
captured: boolean,
pressed: {
left: boolean,
middle: boolean,
right: boolean,
},
clicks: {
left: number,
middle: number,
right: number,
},
presses: {
left: number,
middle: number,
right: number,
},
stop: () => void,
}
packages / workbench / src / providers / event-provider.ts