Namespace Apogee.Input¶
Classes¶
One action the player can bind: where it works (its contexts) and what it is bound to (its defaults until the player rebinds it).
Every action the player can bind, where each works (its contexts) and what it is bound to. Contexts are names the game chooses (world,
on_foot, vehicle, menu); situations say which are active together, so two actions that can never be active at once may share an input.
A
Turns the player's input into the actions of an
Feeds an
The names keys go by in bindings. They name the physical key by its place on a US QWERTY keyboard (SDL's scancodes), so a binding means the same place on every layout. The left and right Ctrl, Shift, Alt and Meta share a name.
Structs¶
What an action is bound to, in the text form players edit: [Hold |Double ][Ctrl+][Shift+][Alt+]input. Keys go by their position on a US
QWERTY keyboard (W, Tab, F1, BracketLeft…: Mouse Left, Mouse Right, Mouse Middle, Mouse Wheel Up, Mouse Wheel Down, Mouse Back, Mouse Forward and the motion
Mouse X- … Mouse Y+; gamepad inputs are Joy A … Joy Right (Xbox names), the sticks Joy LX- … Joy RY+ (Y+ is down) and
the triggers Joy LT, Joy RT. Names are case-insensitive when read and written the way this lists them.
Two actions that can be active together and are bound to the same input.
Enums¶
Keys held with an input: Ctrl+Shift+L.
How an input fires an action: when it is pressed (or quickly released, if the same input also has a hold), when it has been held, or on its second tap.