mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
some fixes
This commit is contained in:
parent
f363187c82
commit
768426965f
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue