KeyStatus.hpp 973 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #ifndef LS_ATLANTIS_ENGINE_INPUT_KEY_STATUS_HPP
  6. #define LS_ATLANTIS_ENGINE_INPUT_KEY_STATUS_HPP
  7. #include <Export.hpp>
  8. #include <glossary/KeyboardKeys.hpp>
  9. namespace ls::atlantis::input
  10. {
  11. class LS_ATLANTIS_DYNAMIC_GOAL KeyStatus
  12. {
  13. public:
  14. KeyStatus();
  15. explicit KeyStatus(const ls::atlantis::glossary::KeyboardKeys &_key, bool _isFreedValue, bool _isPressedValue);
  16. ~KeyStatus();
  17. [[nodiscard]] ls::atlantis::glossary::KeyboardKeys getKey() const;
  18. [[nodiscard]] bool getIsFreedValue() const;
  19. [[nodiscard]] bool getIsPressedValue() const;
  20. void setIsFreedValue(bool _isFreedValue);
  21. void setIsPressedValue(bool _isPressedValue);
  22. void setKey(const ls::atlantis::glossary::KeyboardKeys &_key);
  23. private:
  24. ls::atlantis::glossary::KeyboardKeys key{};
  25. bool isFreedValue{};
  26. bool isPressedValue{};
  27. };
  28. }
  29. #endif