Skip to content

Commit

Permalink
Re-implement keyboard command for cycling object ids
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranmillar committed Nov 22, 2017
1 parent e48f8ee commit 71095dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ b -- toggle background-only mode
ijkl -- scroll
arrow pad -- fine-tune object location
shift -- ... faster

[ -- cycle object id down
] -- cycle object id up
6 changes: 6 additions & 0 deletions src/Editor/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ void Editor_input::handleEvents(SDL_Event event)
case SDLK_DELETE:
editor_ptr->delete_selected();
break;
case SDLK_LEFTBRACKET:
editor_ptr->decrease_obj_id();
break;
case SDLK_RIGHTBRACKET:
editor_ptr->increase_obj_id();
break;
case SDLK_q:
die();
break;
Expand Down

0 comments on commit 71095dc

Please sign in to comment.