Skip to content

Commit

Permalink
input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DileSoft committed Feb 24, 2024
1 parent 3f54cbb commit c01ab7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MechoSoma/XTool/xutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ int xtCallXKey(SDL_Event *event) {

case SDL_TEXTINPUT:
{
if (event->text.text[0] < 127) {
if (event->text.text[0] > 0 && event->text.text[0] < 127) {
XKey.LastChar = event->text.text[0];
}
break;
Expand Down

0 comments on commit c01ab7d

Please sign in to comment.