|
Aegis2D
Modular C++26 2D game engine for networked games
|
Gamepad buttons, sticks and triggers, with no SDL type. More...
#include <aegis2d/platform/export.hpp>#include <array>#include <bitset>#include <cstddef>#include <cstdint>#include <optional>#include <span>#include <string>#include <string_view>Go to the source code of this file.
Classes | |
| class | aegis2d::platform::Gamepad |
| Buttons held down, and those pressed or released since the start of the frame, with the position of the sticks and triggers. 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). | |
Functions | |
| std::string_view | aegis2d::platform::button_name (GamepadButton button) noexcept |
| Stable name of a button, as written in settings files. | |
| std::optional< GamepadButton > | aegis2d::platform::button_from_name (std::string_view name) |
Button whose name is name, ignoring case. | |
| std::string | aegis2d::platform::button_label (GamepadButton button, GamepadStyle style={}) |
| Name of a button as printed on a pad of the given family, for a controls reminder. | |
Variables | |
| constexpr std::size_t | aegis2d::platform::gamepad_button_count |
| Number of GamepadButton values. | |
| constexpr std::size_t | aegis2d::platform::gamepad_axis_count |
| Number of GamepadAxis values. | |
Gamepad buttons, sticks and triggers, with no SDL type.