Skip to content

Commit

Permalink
allow input chars outside tessfont set
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 18, 2022
1 parent c4098ff commit 9f0f1aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/engine/interface/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,10 @@ void checkinput(int map)
{
if(textinputmask && static_cast<int>(event.text.timestamp-textinputtime) >= textinputfilter)
{
uchar buf[SDL_TEXTINPUTEVENT_TEXT_SIZE+1];
size_t len = decodeutf8(buf, sizeof(buf)-1, reinterpret_cast<const uchar *>(event.text.text), std::strlen(event.text.text));
size_t len = std::strlen(event.text.text);
if(len > 0)
{
buf[len] = '\0';
processtextinput(reinterpret_cast<const char *>(buf), len);
processtextinput(reinterpret_cast<const char *>(event.text.text), len);
}
}
break;
Expand Down

0 comments on commit 9f0f1aa

Please sign in to comment.