Engine » Input module

Adds input handling to Cubos.

Bridges

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)

Plugin entry function.

Parameters
cubos Cubos main class.