.. _api_ControlScheme: ControlScheme ============= Inherited: :ref:`Resource` .. _api_ControlScheme_description: 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. .. _api_ControlScheme_public: Public Methods -------------- +------------------------------+--------------------------------------------------------------------------------+ | :ref:`TString` | :ref:`actionName` (int action) const | +------------------------------+--------------------------------------------------------------------------------+ | int | :ref:`actionsCount` () const | +------------------------------+--------------------------------------------------------------------------------+ | int | :ref:`bindingCode` (int action, int binding) | +------------------------------+--------------------------------------------------------------------------------+ | bool | :ref:`bindingNegative` (int action, int binding) | +------------------------------+--------------------------------------------------------------------------------+ | int | :ref:`bindingsCount` (int action) const | +------------------------------+--------------------------------------------------------------------------------+ .. _api_ControlScheme_static: Static Methods -------------- None .. _api_ControlScheme_methods: Methods Description ------------------- .. _api_ControlScheme_0cf732d8: :ref:`TString` **ControlScheme::actionName** (int *action*) const Returns The name of the specified *action* or an empty string if the index is out of range. ---- .. _api_ControlScheme_a51f0837: int **ControlScheme::actionsCount** () const Gets the total number of actions in the control scheme. ---- .. _api_ControlScheme_2cdb59fe: 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. ---- .. _api_ControlScheme_aec7d9f6: 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. ---- .. _api_ControlScheme_c1fbd873: int **ControlScheme::bindingsCount** (int *action*) const Returns The number of bindings for the specified action.