FIX: char '1' work like backspace on android

This commit is contained in:
2026-07-29 22:22:35 +03:00
parent 9987ab63b4
commit b032a8df7c
3 changed files with 20 additions and 5 deletions

View File

@@ -61,6 +61,12 @@ bool Screen::handleBackEvent( bool isDown )
return false;
}
void Screen::tick() {
for (auto& textbox : textBoxes) {
textbox->tick(minecraft);
}
}
void Screen::updateEvents()
{
if (passEvents)
@@ -110,10 +116,12 @@ void Screen::keyboardEvent()
keyPressed(Keyboard::getEventKey());
}
}
void Screen::keyboardTextEvent()
{
charPressed(Keyboard::getChar());
}
void Screen::renderBackground()
{
renderBackground(0);

View File

@@ -31,7 +31,7 @@ public:
virtual void keyboardTextEvent();
virtual bool handleBackEvent(bool isDown);
virtual void tick() {}
virtual void tick();
virtual void removed() {}