MouseButton
constMouseButton: ((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.
Type Declaration
Section titled “Type Declaration”
readonlyLeft:0=0
Middle
Section titled “Middle”
readonlyMiddle:1=1
readonlyRight:2=2