From 0a6a864ace082625f42f14b4cc055e84597c7a87 Mon Sep 17 00:00:00 2001 From: Engin Manap Date: Wed, 29 Aug 2018 22:41:11 +0300 Subject: [PATCH] Change editor mode key to F2 for better global handling --- README.md | 2 +- src/InputHandler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 931cd996..b39a72b8 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ $ cmake ../ ### In Application: - Pressing `0` switches to debug mode, renders physics collision meshes and disconnects player from physics (flying and passing trough objects) -- Pressing `"` key switches to editor mode, which allows creating maps. +- Pressing `F2` key switches to editor mode, which allows creating maps. - Pressing `+` and `-` changes mouse sensitivity. - `wasd` for walking around and mouse for looking around as usual. diff --git a/src/InputHandler.cpp b/src/InputHandler.cpp index f422b215..05e4b542 100644 --- a/src/InputHandler.cpp +++ b/src/InputHandler.cpp @@ -181,7 +181,7 @@ void InputHandler::mapInput() { } inputStatus[DEBUG] = true; break; - case SDLK_QUOTEDBL: + case SDLK_F2: if(!inputStatus[EDITOR]) { inputEvents[EDITOR] = true; } @@ -258,7 +258,7 @@ void InputHandler::mapInput() { } inputStatus[DEBUG] = false; break; - case SDLK_QUOTEDBL: + case SDLK_F2: if(!inputStatus[EDITOR]) { inputEvents[EDITOR] = true; }