diff --git a/src/Application.hpp b/src/Application.hpp index d84972d..ad510ba 100644 --- a/src/Application.hpp +++ b/src/Application.hpp @@ -12,10 +12,11 @@ #include #include #include +#include namespace sc { namespace gui { - using EventHandler = bool(*)(const SDL_Event&); + using EventHandler = std::function; using RunLoopAction = void(*)(); class Application { diff --git a/src/Window.hpp b/src/Window.hpp index a2dec84..2ac8b59 100644 --- a/src/Window.hpp +++ b/src/Window.hpp @@ -15,10 +15,11 @@ #include #include #include +#include namespace sc { namespace gui { - using WindowEventHandler = bool(*)(const SDL_Event&, bool quit); + using WindowEventHandler = std::function; class Image; class Window {