#pragma once #include extern "C" { #include } namespace wrapsdl2 { class event { public: using type = SDL_EventType; event(const SDL_Event& e); SDL_Event& sdl() { return m_event; } private: SDL_Event m_event; }; std::optional poll_event(); }