Wrap SDL event type enum (partially)
This commit is contained in:
parent
b8bd56392c
commit
d4c91450d9
3 changed files with 22 additions and 3 deletions
|
|
@ -83,7 +83,7 @@ export namespace core
|
|||
// Handles an SDL event. Returns true if the event has been handled.
|
||||
bool handle_event(const sdl::Event* event)
|
||||
{
|
||||
if (event->type == SDL_EVENT_QUIT) {
|
||||
if (event->type == sdl::EventType::Quit) {
|
||||
// Exit the application
|
||||
keep_running_ = false;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue