SdlKeyEventManager.hpp 795 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #ifndef LS_ATLANTIS_ENGINE_WINDOW_SDL_KEY_EVENT_MANAGER_HPP
  6. #define LS_ATLANTIS_ENGINE_WINDOW_SDL_KEY_EVENT_MANAGER_HPP
  7. #include <Export.hpp>
  8. #include <SDL3/SDL_events.h>
  9. #include <interface/IKeyboard.hpp>
  10. #include <memory>
  11. namespace ls::atlantis::window
  12. {
  13. class LS_ATLANTIS_DYNAMIC_GOAL SdlKeyEventManager
  14. {
  15. public:
  16. SdlKeyEventManager();
  17. ~SdlKeyEventManager();
  18. static void manageKeyDownEvent(const ::std::shared_ptr<ls::atlantis::interfaces::IKeyboard> &_keyboard, const ::std::shared_ptr<SDL_Event> &_event);
  19. static void manageKeyUpEvent(const ::std::shared_ptr<ls::atlantis::interfaces::IKeyboard> &_keyboard, const ::std::shared_ptr<SDL_Event> &_event);
  20. };
  21. }
  22. #endif