From bfecf1d5dbebc96a3f65acacc1f14aebac055a71 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 29 Jun 2018 10:31:03 +0000 Subject: [PATCH] VirtualGUI/SDL2GL: Event hook virtual method git-svn-id: svn://ultimatepp.org/upp/trunk@12027 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/VirtualGui/SDL2GL/Event.cpp | 2 +- uppsrc/VirtualGui/SDL2GL/SDL2GL.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/VirtualGui/SDL2GL/Event.cpp b/uppsrc/VirtualGui/SDL2GL/Event.cpp index ba1b8b361..a6c5841c6 100644 --- a/uppsrc/VirtualGui/SDL2GL/Event.cpp +++ b/uppsrc/VirtualGui/SDL2GL/Event.cpp @@ -52,7 +52,7 @@ dword SDL2GUI::GetModKeys() return modkeys; } -void HandleSDLEvent(SDL_Event* event) +void SDL2GUI::HandleSDLEvent(SDL_Event* event) { LLOG("HandleSDLEvent " << event->type); SDL_Event next_event; diff --git a/uppsrc/VirtualGui/SDL2GL/SDL2GL.h b/uppsrc/VirtualGui/SDL2GL/SDL2GL.h index 64e420510..453321fae 100644 --- a/uppsrc/VirtualGui/SDL2GL/SDL2GL.h +++ b/uppsrc/VirtualGui/SDL2GL/SDL2GL.h @@ -26,6 +26,7 @@ struct SDL2GUI : VirtualGui { virtual void CommitDraw(); virtual void Quit(); + virtual void HandleSDLEvent(SDL_Event* event); SDL_Window *win; SDL_GLContext glcontext;