Reference mouseButton

mouseButton

A String system variable that contains the value of the last mouse button pressed.

The mouseButton variable is either LEFT, RIGHT, or CENTER, depending on which button was pressed last.

Note: Different browsers may track mouseButton differently. See MDN for more information.

Examples

Notice any errors or typos? Please let us know. Please feel free to edit src/events/mouse.js and open a pull request!

Related References