From a62ade1d998ae276fdfea6060e5e9233a6f3e395 Mon Sep 17 00:00:00 2001 From: iProgramInCpp Date: Wed, 2 Aug 2023 22:45:40 +0300 Subject: [PATCH] * Enable sneaking. * Fix #19. --- source/GUI/TextInputBox.cpp | 2 +- source/Options.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/GUI/TextInputBox.cpp b/source/GUI/TextInputBox.cpp index 87c6e27..7523dbc 100644 --- a/source/GUI/TextInputBox.cpp +++ b/source/GUI/TextInputBox.cpp @@ -84,7 +84,7 @@ void TextInputBox::keyPressed(Minecraft* minecraft, int key) chr = bShiftPressed ? '<' : ','; break; case AKEYCODE_PERIOD: - chr = bShiftPressed ? '>' : ':'; + chr = bShiftPressed ? '>' : '.'; break; case AKEYCODE_PLUS: chr = bShiftPressed ? '+' : '='; diff --git a/source/Options.cpp b/source/Options.cpp index a5aa50c..91bea63 100644 --- a/source/Options.cpp +++ b/source/Options.cpp @@ -91,6 +91,10 @@ void Options::initDefaultValues() m_keyBinds[13].value = AKEYCODE_DPAD_UP; m_keyBinds[14].value = AKEYCODE_DPAD_CENTER; m_keyBinds[15].value = AKEYCODE_BACK; + +#ifndef ORIGINAL_CODE + m_keyBinds[9].value = AKEYCODE_SHIFT_LEFT; +#endif } Options::Options()