mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Implement backspace support
This commit is contained in:
parent
b7064f58f0
commit
187eb13245
@ -335,7 +335,7 @@ void VirtualKeyboard::runLogic()
|
||||
if (this->buf_head > 1)
|
||||
{
|
||||
this->buf[this->buf_head - 1] = INVALID_VIRTKEY;
|
||||
this->buf_head -= 2;
|
||||
this->buf_head--;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -430,6 +430,10 @@ void VirtualKeyboard::pushEvent(SDL_Event *ev)
|
||||
case SDLK_RSHIFT:
|
||||
case SDLK_LSHIFT:
|
||||
this->shift_on = !this->default_shifted; break;
|
||||
case SDLK_BACKSPACE:
|
||||
if (this->buf_head > 0)
|
||||
this->buf_head--;
|
||||
break;
|
||||
case SDLK_UP:
|
||||
case SDLK_DOWN:
|
||||
case SDLK_LEFT:
|
||||
|
Loading…
Reference in New Issue
Block a user