Docs / MonoInput

Glossary: GamePadStatus

The properties of GamePadStatus, in alphabetical order.

Color legend plain property

One player slot: whether a pad is connected, its fifteen buttons, both sticks and both triggers, with how far each moved since the update before.

A class, in the namespace BorrowedTorch.MonoInput.Inputs.GamePad. It has no public constructor: GamePadsStatus holds four, one per slot, for the whole run. A slot with no pad reads idle and at zero. The gamepads page shows it in context, with code.

Names are colored by what they are: a property.

Properties

A →

GamePadButtonInfo · Read-only. The bottom face button, A on an Xbox layout.

B →

GamePadButtonInfo · Read-only. The right face button, B on an Xbox layout.

Back →

GamePadButtonInfo · Read-only. The Back or View button, left of the middle.

Down →

GamePadButtonInfo · Read-only. Down on the D-pad.

Home →

GamePadButtonInfo · Read-only. The guide button in the middle, MonoGame’s BigButton. Not every platform reports it.

IsAnyButtonActive →

bool · Read-only. Any of the fifteen buttons is pressed, held or just let go. The triggers aren’t buttons and don’t count.

IsAnyButtonDown →

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

IsAnyButtonPressed →

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

IsAnyButtonUp →

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

IsConnected →

bool · Read-only. A pad is connected in the slot. At the update it disconnects, its buttons go Up and its sticks and triggers back to zero; at the next, the buttons are Idle.

Left →

GamePadButtonInfo · Read-only. Left on the D-pad.

LeftShoulder →

GamePadButtonInfo · Read-only. The left bumper, above the left trigger.

LeftStick →

GamePadButtonInfo · Read-only. A press on the left stick.

LeftStickShift →

Vector2 · Read-only. Where the left stick is, each axis from −1 to 1: X to the right, Y up. Exactly zero at rest, inside the circular dead zone.

LeftStickShiftDelta →

Vector2 · Read-only. How far the left stick moved since the update before.

LeftTriggerValue →

float · Read-only. How far the left trigger is pulled, from 0 to 1.

LeftTriggerValueDelta →

float · Read-only. How far the left trigger moved since the update before: positive when pulled further.

PlayerIndex →

PlayerIndex · Read-only. The slot, from One to Four.

GamePadButtonInfo · Read-only. Right on the D-pad.

RightShoulder →

GamePadButtonInfo · Read-only. The right bumper, above the right trigger.

RightStick →

GamePadButtonInfo · Read-only. A press on the right stick.

RightStickShift →

Vector2 · Read-only. Where the right stick is, each axis from −1 to 1: X to the right, Y up. Exactly zero at rest, inside the circular dead zone.

RightStickShiftDelta →

Vector2 · Read-only. How far the right stick moved since the update before.

RightTriggerValue →

float · Read-only. How far the right trigger is pulled, from 0 to 1.

RightTriggerValueDelta →

float · Read-only. How far the right trigger moved since the update before: positive when pulled further.

Start →

GamePadButtonInfo · Read-only. The Start or Menu button, right of the middle.

Up →

GamePadButtonInfo · Read-only. Up on the D-pad.

X →

GamePadButtonInfo · Read-only. The left face button, X on an Xbox layout.

Y →

GamePadButtonInfo · Read-only. The top face button, Y on an Xbox layout.