Skip to main content

Function: getMouseButtonName()

getMouseButtonName(button): string

Defined in: input/constants/mouse-buttons.ts:20

Gets the name of a mouse button given its numeric value.

Parameters

button

MouseButton

The numeric value of the mouse button.

Returns

string

The name of the mouse button.