From 98a05e5aa3dbfac4472383a091f6f3863e256002 Mon Sep 17 00:00:00 2001 From: InviseDivine Date: Sat, 21 Mar 2026 18:25:42 +0200 Subject: [PATCH] FIX: Keyboard on android --- src/client/gui/screens/OptionsScreen.cpp | 8 -------- src/client/player/input/touchscreen/TouchscreenInput.cpp | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/client/gui/screens/OptionsScreen.cpp b/src/client/gui/screens/OptionsScreen.cpp index a7875dd..11b87c1 100755 --- a/src/client/gui/screens/OptionsScreen.cpp +++ b/src/client/gui/screens/OptionsScreen.cpp @@ -19,7 +19,6 @@ OptionsScreen::OptionsScreen() } OptionsScreen::~OptionsScreen() { - if (btnClose != NULL) { delete btnClose; btnClose = NULL; @@ -53,7 +52,6 @@ OptionsScreen::~OptionsScreen() { } void OptionsScreen::init() { - bHeader = new Touch::THeader(0, "Options"); btnClose = new ImageButton(1, ""); @@ -89,7 +87,6 @@ void OptionsScreen::init() { } void OptionsScreen::setupPositions() { - int buttonHeight = btnClose->height; btnClose->x = width - btnClose->width; @@ -134,7 +131,6 @@ void OptionsScreen::setupPositions() { void OptionsScreen::render(int xm, int ym, float a) { - renderBackground(); int xmm = xm * width / minecraft->width; @@ -150,7 +146,6 @@ void OptionsScreen::removed() { } void OptionsScreen::buttonClicked(Button* button) { - if (button == btnClose) { minecraft->options.save(); if (minecraft->screen != NULL) { @@ -169,7 +164,6 @@ void OptionsScreen::buttonClicked(Button* button) { } void OptionsScreen::selectCategory(int index) { - int currentIndex = 0; for (std::vector::iterator it = categoryButtons.begin(); it != categoryButtons.end(); ++it) { @@ -235,7 +229,6 @@ void OptionsScreen::generateOptionScreens() { } void OptionsScreen::mouseClicked(int x, int y, int buttonNum) { - if (currentOptionsGroup != NULL) currentOptionsGroup->mouseClicked(minecraft, x, y, buttonNum); @@ -243,7 +236,6 @@ void OptionsScreen::mouseClicked(int x, int y, int buttonNum) { } void OptionsScreen::mouseReleased(int x, int y, int buttonNum) { - if (currentOptionsGroup != NULL) currentOptionsGroup->mouseReleased(minecraft, x, y, buttonNum); diff --git a/src/client/player/input/touchscreen/TouchscreenInput.cpp b/src/client/player/input/touchscreen/TouchscreenInput.cpp index 41474f3..b00f7e8 100755 --- a/src/client/player/input/touchscreen/TouchscreenInput.cpp +++ b/src/client/player/input/touchscreen/TouchscreenInput.cpp @@ -320,6 +320,7 @@ void TouchscreenInput_TestFps::tick( Player* player ) if (Multitouch::isReleased(p)) { _minecraft->soundEngine->playUI("random.click", 1, 1); _minecraft->screenChooser.setScreen(SCREEN_CONSOLE); + _minecraft->platform()->showKeyboard(); } }