ControlScheme
Inherited: None
Description
The ControlScheme class provides functionality for managing and customizing control schemes within a game. It allows users to define actions and map them to various input bindings.
Public Methods
std::string |
actionName (int action) const |
int |
actionsCount () const |
int |
bindingCode (int action, int binding) |
bool |
bindingNegative (int action, int binding) |
int |
bindingsCount (int action) const |
Static Methods
None
Methods Description
std::string ControlScheme::actionName (int action) const
Returns The name of the specified action or an empty string if the index is out of range.
int ControlScheme::actionsCount () const
Gets the total number of actions in the control scheme.
int ControlScheme::bindingCode (int action, int binding)
Returns the input code for the specified binding action or Input::KEY_UNKNOWN if the indices are out of range.
bool ControlScheme::bindingNegative (int action, int binding)
Returns true if the binding action is negative, false otherwise. Returns false if the indices are out of range.
int ControlScheme::bindingsCount (int action) const
Returns The number of bindings for the specified action.