Skip to content

Commit

Permalink
Change editor mode key to F2 for better global handling
Browse files Browse the repository at this point in the history
  • Loading branch information
enginmanap committed Aug 29, 2018
1 parent fbe0448 commit 0a6a864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions src/InputHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void InputHandler::mapInput() {
}
inputStatus[DEBUG] = true;
break;
case SDLK_QUOTEDBL:
case SDLK_F2:
if(!inputStatus[EDITOR]) {
inputEvents[EDITOR] = true;
}
Expand Down Expand Up @@ -258,7 +258,7 @@ void InputHandler::mapInput() {
}
inputStatus[DEBUG] = false;
break;
case SDLK_QUOTEDBL:
case SDLK_F2:
if(!inputStatus[EDITOR]) {
inputEvents[EDITOR] = true;
}
Expand Down

0 comments on commit 0a6a864

Please sign in to comment.