Input · type

MouseButton

A mouse button by what it is, in MouseEvent.button order.

Explained in Moving things.

type MouseButton = 'left' | 'middle' | 'right' | 'back' | 'forward'
import type { MouseButton } from '@driftengine/core';