it appears SDL2 takes over interrupt in console

mode
This commit is contained in:
tildearrow 2022-07-25 16:21:39 -05:00
parent 542a46e89b
commit 3183400019

View file

@ -20,7 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <string> #include <string>
#ifdef HAVE_GUI #ifdef HAVE_SDL2
#include "SDL_events.h" #include "SDL_events.h"
#endif #endif
#include "ta-log.h" #include "ta-log.h"
@ -467,7 +467,7 @@ int main(int argc, char** argv) {
if (consoleMode) { if (consoleMode) {
logI("playing..."); logI("playing...");
e.play(); e.play();
#ifdef HAVE_GUI #ifdef HAVE_SDL2
SDL_Event ev; SDL_Event ev;
while (true) { while (true) {
SDL_WaitEvent(&ev); SDL_WaitEvent(&ev);