Wrap SDL event type enum (partially)

This commit is contained in:
Lexi / Zoe 2025-11-26 02:07:27 +01:00
parent b8bd56392c
commit d4c91450d9
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
3 changed files with 22 additions and 3 deletions

View file

@ -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;