| 12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * author: Patrick-Christopher Mattulat
- * e-mail: webmaster@lynarstudios.com
- */
- #ifndef LS_ATLANTIS_ENGINE_INPUT_KEY_STATUS_HPP
- #define LS_ATLANTIS_ENGINE_INPUT_KEY_STATUS_HPP
- #include <Export.hpp>
- #include <glossary/KeyboardKeys.hpp>
- namespace ls::atlantis::input
- {
- class LS_ATLANTIS_DYNAMIC_GOAL KeyStatus
- {
- public:
- KeyStatus();
- explicit KeyStatus(const ls::atlantis::glossary::KeyboardKeys &_key, bool _isFreedValue, bool _isPressedValue);
- ~KeyStatus();
- [[nodiscard]] ls::atlantis::glossary::KeyboardKeys getKey() const;
- [[nodiscard]] bool getIsFreedValue() const;
- [[nodiscard]] bool getIsPressedValue() const;
- void setIsFreedValue(bool _isFreedValue);
- void setIsPressedValue(bool _isPressedValue);
- void setKey(const ls::atlantis::glossary::KeyboardKeys &_key);
- private:
- ls::atlantis::glossary::KeyboardKeys key{};
- bool isFreedValue{};
- bool isPressedValue{};
- };
- }
- #endif
|