5#include <aegis2d/platform/export.hpp>
24enum class Key : std::uint8_t {
132[[nodiscard]] AEGIS2D_PLATFORM_EXPORT std::string_view
key_name(
Key key)
noexcept;
157 void press(
Key key) noexcept;
161 void release(
Key key) noexcept;
164 void release_all() noexcept;
169 [[nodiscard]]
bool held(
Key key) const noexcept;
174 [[nodiscard]]
bool pressed(
Key key) const noexcept;
179 [[nodiscard]]
bool released(
Key key) const noexcept;
183 [[nodiscard]]
std::span<const
Key> pressed_keys() const noexcept;
187 [[nodiscard]]
std::uint64_t frame() const noexcept;
190 std::bitset<key_count> held_;
191 std::bitset<key_count> pressed_;
192 std::bitset<key_count> released_;
193 std::array<
Key, key_count> order_{};
194 std::size_t order_size_ = 0;
195 std::uint64_t frame_ = 0;
Definition endpoint.hpp:85