7#include <aegis2d/platform/export.hpp>
37 [[nodiscard]]
ActionId action() const noexcept;
41 void set_enabled(
bool enabled) noexcept;
45 [[nodiscard]]
bool enabled() const noexcept;
69 [[nodiscard]]
bool held() const noexcept;
72 void release() noexcept;
77 void save(core::Config& settings,
std::string_view path) const;
84 void load(const core::Config& settings,
std::string_view path);
Named actions (move, fire...) bound to keys and gamepad buttons, so gameplay never reads raw input.
JSON configuration with dotted-path lookups, which can be changed and saved.
Gamepad buttons, sticks and triggers, with no SDL type.
Keyboard keys, their names, and the state of the keyboard during a frame.
Definition endpoint.hpp:85