module
InputAdds input handling to Cubos.
Bridges
- JSONBridge - registered with the
.bind
extension, loads InputBindings assets.
Events
- InputEvent - (TODO) emitted when an input event occurs.
Resources
- Input - stateful input manager, used to query the input state.
Dependencies
Files
- file action.hpp
- Class cubos::
engine:: InputAction. - file axis.hpp
- Class cubos::
engine:: InputAxis. - file bindings.hpp
- Class cubos::
engine:: InputBindings. - file combination.hpp
- Class cubos::
engine:: InputCombination. - file input.hpp
- Resource cubos::
engine:: Input. - file plugin.hpp
- Plugin entry point.
Classes
- class cubos::engine::InputAction
- Stores the state of a single input action, such as "jump" or "attack".
- class cubos::engine::InputAxis
- Stores the state of a single input axis, such as "move forward" or "move right".
- class cubos::engine::InputBindings
- Stores the input bindings for a single player.
- class cubos::engine::InputCombination
- Stores the keys, gamepad buttons, and mouse buttons of a single input combination.
- class cubos::engine::Input
- Resource which stores the input bindings for multiple players.
Functions
-
auto inputPlugin(Cubos& cubos) -> CUBOS_
ENGINE_ API void - Plugin entry function.
Function documentation
CUBOS_ ENGINE_ API void inputPlugin(Cubos& cubos)
#include <engine/input/plugin.hpp>
Plugin entry function.
Parameters | |
---|---|
cubos | Cubos main class. |