Skip to content

MouseButton

1 min read

Import: import system.window;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

MouseButton

A mouse button.

public enum MouseButton

Left

The primary (usually left) button.

Left = 0

The secondary (usually right) button.

Right = 1

Middle

The middle button or pressed scroll wheel.

Middle = 2

Back

The side button that browsers use for "back".

Back = 3

Forward

The side button that browsers use for "forward".

Forward = 4