Docs / MonoInput

Glossary: MouseButtonsStates

The members of MouseButtonsStates, in alphabetical order.

Color legend plain property method

The states of the five mouse buttons at one moment, compared with ==: what OnButtonsStatesChanged hands its handlers.

A class, in the namespace BorrowedTorch.MonoInput.Inputs.Mouse. A snapshot copies the states of the buttons of MouseStatus when it is created and never changes after. The mouse page shows it in context, with code.

Names are colored by what they are: a property or a method; values and fields keep the plain color.

Properties

LeftButtonState →

ButtonStates · Read-only. The state of the left button when the snapshot was taken.

MiddleButtonState →

ButtonStates · Read-only. The state of the middle button when the snapshot was taken.

RightButtonState →

ButtonStates · Read-only. The state of the right button when the snapshot was taken.

XButton1State →

ButtonStates · Read-only. The state of the first side button when the snapshot was taken.

XButton2State →

ButtonStates · Read-only. The state of the second side button when the snapshot was taken.

Methods

MouseButtonsStates() →

MouseButtonsStates() · A snapshot of the five buttons of MouseStatus as they are now, the same as GetButtonsStates.

==() →

operator ==(MouseButtonsStates first, MouseButtonsStates second) · True when the five states are equal, or when both are null. != is its opposite, and Equals compares the same way.

Parameter Type Description
first MouseButtonsStates The first snapshot.
second MouseButtonsStates The second snapshot.

Equals() →

Equals(object obj) · True for a MouseButtonsStates with the same five states.

Parameter Type Description
obj object The object to compare with.

GetHashCode() →

GetHashCode() · A hash of the five states, the same for equal snapshots.

ToString() →

ToString() · The five states, such as L: Pressed M: Idle R: Idle X1: Idle X2: Idle.