mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
allow escape to close chat instead of opening pause
This commit is contained in:
parent
bee5b34f94
commit
1a8084cb32
|
|
@ -1537,8 +1537,12 @@ void Minecraft::run_middle()
|
||||||
// Utility keys always work regardless of KBM active state
|
// Utility keys always work regardless of KBM active state
|
||||||
if(g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_PAUSE) && !ui.GetMenuDisplayed(i))
|
if(g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_PAUSE) && !ui.GetMenuDisplayed(i))
|
||||||
{
|
{
|
||||||
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_PAUSEMENU;
|
if (dynamic_cast<ChatScreen*>(getScreen()) != nullptr) {
|
||||||
app.DebugPrintf("PAUSE PRESSED (keyboard) - ipad = %d\n",i);
|
setScreen(nullptr);
|
||||||
|
} else {
|
||||||
|
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_PAUSEMENU;
|
||||||
|
app.DebugPrintf("PAUSE PRESSED (keyboard) - ipad = %d\n",i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_THIRD_PERSON))
|
if(g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_THIRD_PERSON))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue