IKeyboard.hpp 721 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #ifndef LS_ATLANTIS_ENGINE_INTERFACE_KEYBOARD_HPP
  6. #define LS_ATLANTIS_ENGINE_INTERFACE_KEYBOARD_HPP
  7. #include <Export.hpp>
  8. #include <glossary/KeyboardKeys.hpp>
  9. namespace ls::atlantis::interfaces
  10. {
  11. class LS_ATLANTIS_DYNAMIC_GOAL IKeyboard
  12. {
  13. public:
  14. IKeyboard();
  15. virtual ~IKeyboard();
  16. virtual bool isFreed(const ls::atlantis::glossary::KeyboardKeys &_key) = 0;
  17. virtual bool isPressed(const ls::atlantis::glossary::KeyboardKeys &_key) = 0;
  18. virtual void reset() = 0;
  19. virtual void updateKey(const ls::atlantis::glossary::KeyboardKeys &_key, bool _isFreed, bool _isPressed) = 0;
  20. };
  21. }
  22. #endif