diff --git a/src/eventthread.cpp b/src/eventthread.cpp index f3e5f2e..8fb5449 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -352,9 +352,9 @@ void EventThread::process(RGSSThreadData &rtData) } if (rtData.acceptingTextInput) { - if (event.key.sym == SDLK_BACKSPACE && rtData.inputText.length() > 0) + if (event.key.key == SDLK_BACKSPACE && rtData.inputText.length() > 0) rtData.inputText.pop_back(); - else if (event.key.sym == SDLK_RETURN) + else if (event.key.key == SDLK_RETURN) rtData.acceptingTextInput.clear(); break; diff --git a/src/eventthread.h b/src/eventthread.h index 961ef5f..21a18fe 100644 --- a/src/eventthread.h +++ b/src/eventthread.h @@ -37,8 +37,10 @@ #include +#include +//typedef struct ALCdevice_struct ALCdevice; + struct RGSSThreadData; -typedef struct ALCdevice_struct ALCdevice; struct SDL_Window; union SDL_Event;