5enum class Keys : int16_t {
149MAYAFLUX_API std::optional<Keys>
from_char(
char c)
noexcept;
156MAYAFLUX_API std::optional<Keys>
from_string(std::string_view str)
noexcept;
216MAYAFLUX_API auto
all_keys() noexcept;
bool is_modifier(Keys key) noexcept
Checks if a key is a modifier key (e.g., Shift, Ctrl, Alt).
std::vector< std::string > all_key_names_lowercase() noexcept
Returns a vector of all key names in lowercase.
size_t key_count() noexcept
Returns the total number of keys.
bool is_printable(Keys key) noexcept
Checks if a key is a printable character.
std::string to_lowercase_string(Keys key) noexcept
Converts a Keys enum value to its lowercase string representation.
std::optional< Keys > from_char(char c) noexcept
Converts a character to the corresponding Keys enum value.
bool is_function_key(Keys key) noexcept
Checks if a key is a function key (e.g., F1-F25).
std::optional< Keys > from_string(std::string_view str) noexcept
Converts a string to the corresponding Keys enum value.
auto all_key_names() noexcept
Returns a container of all key names.
std::string_view to_string(Keys key) noexcept
Converts a Keys enum value to its string representation.
auto all_keys() noexcept
Returns a container of all Keys enum values.
bool is_keypad_key(Keys key) noexcept
Checks if a key is a keypad key.