mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-24 14:31:10 +01:00
small bugfix
This commit is contained in:
parent
1d5db5e622
commit
51008b7dde
@ -290,8 +290,11 @@ void GuiKeyboard::Update(GuiTrigger * t)
|
|||||||
}
|
}
|
||||||
else if(keyBack->GetState() == STATE_CLICKED)
|
else if(keyBack->GetState() == STATE_CLICKED)
|
||||||
{
|
{
|
||||||
kbtextstr[strlen(kbtextstr)-1] = 0;
|
if(strlen(kbtextstr) > 0)
|
||||||
kbText->SetText(GetDisplayText(kbtextstr));
|
{
|
||||||
|
kbtextstr[strlen(kbtextstr)-1] = 0;
|
||||||
|
kbText->SetText(GetDisplayText(kbtextstr));
|
||||||
|
}
|
||||||
keyBack->SetState(STATE_SELECTED, t->chan);
|
keyBack->SetState(STATE_SELECTED, t->chan);
|
||||||
}
|
}
|
||||||
else if(keyShift->GetState() == STATE_CLICKED)
|
else if(keyShift->GetState() == STATE_CLICKED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user