Skip to content

Commit 27c73c6

Browse files
committed
hack translation of command to ctrl
1 parent f250e7b commit 27c73c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ int main(int argc, char* argv[])
341341
}
342342
}
343343
#endif
344+
if (event.type == SDL_KEYUP || event.type == SDL_KEYDOWN) {
345+
if (event.key.keysym.mod & KMOD_GUI) {
346+
event.key.keysym.mod = KMOD_CTRL;
347+
}
348+
}
344349
engine.OnEvent(event);
345350
}
346351

0 commit comments

Comments
 (0)