Table of Contents

Enum MouseButton

Namespace
Godot
Assembly
GodotSharp.dll
public enum MouseButton : long

Fields

Left = 1

Primary mouse button, usually assigned to the left button.

Middle = 3

Middle mouse button.

None = 0

Enum value which doesn't correspond to any mouse button. This is used to initialize MouseButton properties with a generic state.

Right = 2

Secondary mouse button, usually assigned to the right button.

WheelDown = 5

Mouse wheel scrolling down.

WheelLeft = 6

Mouse wheel left button (only present on some mice).

WheelRight = 7

Mouse wheel right button (only present on some mice).

WheelUp = 4

Mouse wheel scrolling up.

Xbutton1 = 8

Extra mouse button 1. This is sometimes present, usually to the sides of the mouse.

Xbutton2 = 9

Extra mouse button 2. This is sometimes present, usually to the sides of the mouse.