some fixes

This commit is contained in:
meowtech 2026-03-30 22:26:46 +00:00
parent f363187c82
commit 768426965f
2 changed files with 5 additions and 3 deletions

View file

@ -352,9 +352,9 @@ void EventThread::process(RGSSThreadData &rtData)
} }
if (rtData.acceptingTextInput) { 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(); rtData.inputText.pop_back();
else if (event.key.sym == SDLK_RETURN) else if (event.key.key == SDLK_RETURN)
rtData.acceptingTextInput.clear(); rtData.acceptingTextInput.clear();
break; break;

View file

@ -37,8 +37,10 @@
#include <stdint.h> #include <stdint.h>
#include <alc.h>
//typedef struct ALCdevice_struct ALCdevice;
struct RGSSThreadData; struct RGSSThreadData;
typedef struct ALCdevice_struct ALCdevice;
struct SDL_Window; struct SDL_Window;
union SDL_Event; union SDL_Event;