Pack REQUEST event codes into enum

This commit is contained in:
Jonas Kulla 2013-09-09 21:22:31 +02:00
parent 4620901002
commit a66b15bd08
1 changed files with 8 additions and 4 deletions

View File

@ -46,11 +46,15 @@ EventThread::MouseState EventThread::mouseState =
0, 0, { false } 0, 0, { false }
}; };
const Uint32 REQUEST_TERMINATION = SDL_USEREVENT+0; enum
const Uint32 REQUEST_SETFULLSCREEN = SDL_USEREVENT+1; {
const Uint32 REQUEST_WINRESIZE = SDL_USEREVENT+2; REQUEST_FIRST = SDL_USEREVENT,
const Uint32 SHOW_MESSAGEBOX = SDL_USEREVENT+3;
REQUEST_TERMINATION,
REQUEST_SETFULLSCREEN,
REQUEST_WINRESIZE,
SHOW_MESSAGEBOX
};
EventThread::EventThread() EventThread::EventThread()
: fullscreen(false) : fullscreen(false)