|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
#include <InputAction.hpp>
Public Member Functions | |
| InputAction (const std::string &name) | |
| bool | isPressed (const InputManager &inputManager) const |
| True if any bound key, button, or axis is currently active in inputManager. | |
Public Attributes | |
| std::vector< std::pair< int, float > > | gamepadAxisMappings |
| std::vector< int > | gamepadButtonMappings |
| std::vector< int > | keyMappings |
| std::vector< int > | mouseButtonMappings |
| std::string | name |
A named input binding across keys, mouse buttons, and gamepad buttons/axes, queried as a single logical action.
Definition at line 13 of file InputAction.hpp.
|
inline |
Definition at line 21 of file InputAction.hpp.
| bool Sleak::Input::InputAction::isPressed | ( | const InputManager & | inputManager | ) | const |
True if any bound key, button, or axis is currently active in inputManager.
| std::vector<std::pair<int, float> > Sleak::Input::InputAction::gamepadAxisMappings |
Definition at line 19 of file InputAction.hpp.
| std::vector<int> Sleak::Input::InputAction::gamepadButtonMappings |
Definition at line 18 of file InputAction.hpp.
| std::vector<int> Sleak::Input::InputAction::keyMappings |
Definition at line 16 of file InputAction.hpp.
| std::vector<int> Sleak::Input::InputAction::mouseButtonMappings |
Definition at line 17 of file InputAction.hpp.
| std::string Sleak::Input::InputAction::name |
Definition at line 15 of file InputAction.hpp.