it appears SDL2 takes over interrupt in console
mode
This commit is contained in:
parent
542a46e89b
commit
3183400019
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue