Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Oct 30, 2023
1 parent 6c3848b commit 45a267d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/eventmanager.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "eventmanager.hpp"

void eventmanager::update() {

Check warning on line 3 in src/eventmanager.cpp

View workflow job for this annotation

GitHub Actions / lint

/src/eventmanager.cpp:3:20 [readability-convert-member-functions-to-static]

method 'update' can be made static
SDL_Event event;

Check warning on line 4 in src/eventmanager.cpp

View workflow job for this annotation

GitHub Actions / lint

/src/eventmanager.cpp:4:13 [cppcoreguidelines-init-variables]

variable 'event' is not initialized
while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_QUIT:
exit(0);
break;
}
// if (event.type == SDL_QUIT) {
// _running = false;
// }
}
}

0 comments on commit 45a267d

Please sign in to comment.