X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2FguiPauseMenu.cpp;h=2d42fdb77dec4189933ed5de7f3fd7f1a2043277;hb=29932d4bddad6a0ad4269606e38701d544784951;hp=99347b052197c8282460f3875b0556ba0bf5657e;hpb=3bb040043c0241f911aacc234bab16737b2e8f19;p=dragonfireclient.git diff --git a/src/guiPauseMenu.cpp b/src/guiPauseMenu.cpp index 99347b052..2d42fdb77 100644 --- a/src/guiPauseMenu.cpp +++ b/src/guiPauseMenu.cpp @@ -116,6 +116,7 @@ void GUIPauseMenu::regenerateGui(v2u32 screensize) L"- Mouse right: place blocks\n" L"- Mouse wheel: select item\n" L"- 0...9: select item\n" + L"- Shift: sneak\n" L"- R: Toggle viewing all loaded chunks\n" L"- I: Inventory menu\n" L"- ESC: This menu\n" @@ -173,10 +174,18 @@ bool GUIPauseMenu::OnEvent(const SEvent& event) { if(event.EventType==EET_KEY_INPUT_EVENT) { - if(event.KeyInput.Key==KEY_ESCAPE && event.KeyInput.PressedDown) + if(event.KeyInput.PressedDown) { - quitMenu(); - return true; + if(event.KeyInput.Key==KEY_ESCAPE) + { + quitMenu(); + return true; + } + else if(event.KeyInput.Key==KEY_RETURN) + { + quitMenu(); + return true; + } } } if(event.EventType==EET_GUI_EVENT)