Moved commands out to the outer event loop.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent 6f53ee1b69
commit ce2ec9f442
6 changed files with 21 additions and 7 deletions
+5 -3
View File
@@ -18,9 +18,11 @@ extern SDL_Window *window;
static const char* button_name(int button) {
switch (button) {
case 1 : return "left";
case 2 : return "middle";
case 3 : return "right";
case SDL_BUTTON_LEFT : return "left";
case SDL_BUTTON_MIDDLE : return "middle";
case SDL_BUTTON_RIGHT : return "right";
case SDL_BUTTON_X1 : return "x1";
case SDL_BUTTON_X2 : return "x2";
default : return "?";
}
}