cubos::engine::InputBindings class final

Stores the input bindings for a single player.

It contains a map of input actions and a map of input axes.

Public functions

auto actions() const -> const std::unordered_map<std::string, InputAction>&
Gets the input actions map.
auto axes() const -> const std::unordered_map<std::string, InputAxis>&
Gets the input axes map.
auto actions() -> std::unordered_map<std::string, InputAction>&
Gets the input actions map.
auto axes() -> std::unordered_map<std::string, InputAxis>&
Gets the input axes map.

Function documentation

const std::unordered_map<std::string, InputAction>& cubos::engine::InputBindings::actions() const

Gets the input actions map.

Returns Input actions map.

const std::unordered_map<std::string, InputAxis>& cubos::engine::InputBindings::axes() const

Gets the input axes map.

Returns Input axes map.

std::unordered_map<std::string, InputAction>& cubos::engine::InputBindings::actions()

Gets the input actions map.

Returns Input actions map.

std::unordered_map<std::string, InputAxis>& cubos::engine::InputBindings::axes()

Gets the input axes map.

Returns Input axes map.