Docs / MonoInput

Glossary: MouseStatus

The members of MouseStatus, in alphabetical order.

Color legend plain property method

The mouse as of the last update: five buttons, the pointer and how far it moved, two wheels and how far they turned.

A class, in the namespace BorrowedTorch.MonoInput.Inputs.Mouse. Read the one MouseStatus holds: only the manager updates a status. 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

HorizontalWheelCumulativeValue →

int · Read-only. The horizontal wheel’s running total, as MonoGame keeps it in HorizontalScrollWheelValue.

HorizontalWheelDelta →

int · Read-only. How far the horizontal wheel turned since the update before, positive to the right. Zero at the first update.

IsAnyButtonActive →

bool · Read-only. Any of the five buttons is pressed, held or just let go.

IsAnyButtonDown →

bool · Read-only. Any of the five buttons is held: Pressed or Down.

IsAnyButtonPressed →

bool · Read-only. Any of the five buttons went down at the last update.

IsAnyButtonUp →

bool · Read-only. Any of the five buttons was let go at the last update.

LeftButton →

MouseButtonInfo · Read-only. The left button. The same object for the whole run.

MiddleButton →

MouseButtonInfo · Read-only. The middle button, usually a press on the wheel. The same object for the whole run.

Position →

Point · Read-only. Where the pointer is, in pixels from the top-left corner of the window’s client area. Outside the window it can be negative or larger than the window.

PositionDelta →

Point · Read-only. How far the pointer moved since the update before, in pixels. Zero at the first update.

RightButton →

MouseButtonInfo · Read-only. The right button. The same object for the whole run.

WheelCumulativeValue →

int · Read-only. The wheel’s running total, as MonoGame keeps it in ScrollWheelValue: 0 when the game starts, 120 more for each notch away from you on most mice.

WheelDelta →

int · Read-only. How far the wheel turned since the update before: positive away from you, 120 a notch on most mice. Zero at the first update.

XButton1 →

MouseButtonInfo · Read-only. The first side button, back on most mice. The same object for the whole run.

XButton2 →

MouseButtonInfo · Read-only. The second side button, forward on most mice. The same object for the whole run.

Methods

MouseStatus() →

MouseStatus() · A status of your own, idle and at zero. Nothing ever updates it: read MouseStatus instead.