|
Aegis2D
Modular C++26 2D game engine for networked games
|
The game's controls in words, for a reminder screen or a settings menu. More...
#include <aegis2d/platform/actions.hpp>#include <aegis2d/platform/export.hpp>#include <aegis2d/platform/gamepad.hpp>#include <functional>#include <map>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | aegis2d::platform::ControlLine |
| One line of a controls reminder: an action and the keys (or gamepad buttons) that trigger it now. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::platform |
| Window and input on top of SDL3, independent of the graphics API (client only). | |
Typedefs | |
| using | aegis2d::platform::ActionLabels = std::map< std::string, std::string, std::less<> > |
Display labels of actions, by action name: {"up", "Move up"}. | |
Functions | |
| std::string | aegis2d::platform::action_label (std::string_view name) |
| Default label of an action name. | |
| std::string | aegis2d::platform::keys_label (const ActionMap &actions, ActionId action) |
| The keys of an action as shown to the player. | |
| std::string | aegis2d::platform::buttons_label (const ActionMap &actions, ActionId action, GamepadStyle style) |
| The gamepad buttons of an action as printed on the player's pad. | |
| std::vector< ControlLine > | aegis2d::platform::control_lines (const ActionMap &actions, const ActionLabels &labels={}) |
| Every action with the keys that trigger it now, in the order they were declared. | |
| std::vector< ControlLine > | aegis2d::platform::control_lines (const ActionMap &actions, GamepadStyle style, const ActionLabels &labels={}) |
| Every action with the gamepad buttons that trigger it now, for a player using a pad, in the order they were declared. | |
The game's controls in words, for a reminder screen or a settings menu.