Moved commands out to the outer event loop.
This commit is contained in:
1 parent
6f53ee1b69
commit
ce2ec9f442
6 files changed
+21
-7
No files matched your search
+5
-3
@@ -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 "?";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user