diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
commit | 87fdac7918d776a4c11b3880eef64b09b334aa1c (patch) | |
tree | e75456587f3a5697d093240b739d8cc5c1025829 /commands/commands.cpp | |
parent | 9ab3c2b88edf48f6e215d940a43dc75fad7a977b (diff) |
linux build config and imgs
Diffstat (limited to 'commands/commands.cpp')
-rw-r--r-- | commands/commands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/commands.cpp b/commands/commands.cpp index cdaf30b..1e9fb71 100644 --- a/commands/commands.cpp +++ b/commands/commands.cpp @@ -24,10 +24,10 @@ bool Commands_sdl::process_events () { SDL_GetMouseState(&mx, &my);
resx = -1; resy = -1;
-
+
SDL_Event e;
while(SDL_PollEvent(&e) != 0) {
- if(e.type == SDL_QUIT) {
+ if(e.type == SDL_QUIT) {
return true;
}
if(e.type == SDL_KEYDOWN && e.key.repeat == 0) {
@@ -67,4 +67,4 @@ void Commands_sdl::process_clicks () { void Commands_sdl::process_keys () {
keys.clear();
-}
\ No newline at end of file +}
|