跳转到内容

MouseButton

此内容尚不支持你的语言。

const MouseButton: ((button) => Binding) & object

Defined in: sdk/src/input/inputMap.ts:89

A mouse button, by the DOM numbering (0 = left, 1 = middle, 2 = right) — and those three by name, so MouseButton.Left reads the same in a binding (MouseButton(MouseButton.Left)) and in a direct query (input.isMouseButtonDown(MouseButton.Left)). Before the names existed MouseButton.Left was undefined, and a query with it was never true.

readonly Left: 0 = 0

readonly Middle: 1 = 1

readonly Right: 2 = 2