Pack REQUEST event codes into enum
This commit is contained in:
parent
4620901002
commit
a66b15bd08
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue