Color legend plain property
One button of a set that never changes, a mouse or a pad button: its state and the five checks that read it.
An abstract class, in the namespace BorrowedTorch.MonoInput.Inputs. MouseButtonInfo and GamePadButtonInfo derive from it. The managers create every button once and change its state in place at each update, so a reference to a button stays good for the whole run. The button states page shows it in context, with code.
Names are colored by what they are: a property.
Properties
Active →
bool · Read-only. Anything but Idle: pressed, held or just let go.
Down →
bool · Read-only. Held: Pressed or Down. True every update the button is held, the first one included, as in MonoGame’s own IsKeyDown.
Idle →
bool · Read-only. Idle: not touched.
Pressed →
bool · Read-only. Pressed: true for the first update the button is held, only.
State →
ButtonStates · Read-only. Where the button is. Idle at first; it moves one step at each update of its manager.
Up →
bool · Read-only. Up: true for the update the button was let go, only.