Skip to content

Commit

Permalink
Controller Base: removed unused process_focus_keydown_event event
Browse files Browse the repository at this point in the history
This was used before the command console was converted to GUI2.
  • Loading branch information
Vultraz committed Mar 8, 2018
1 parent b65f303 commit 4659abe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions src/controller_base.cpp
Expand Up @@ -69,6 +69,7 @@ void controller_base::handle_event(const SDL_Event& event)

switch(event.type) {
case SDL_TEXTINPUT:
// TODO: remove, not necessary anymore
if(have_keyboard_focus()) {
hotkey::key_event(event, get_hotkey_command_executor());
}
Expand Down Expand Up @@ -96,8 +97,6 @@ void controller_base::handle_event(const SDL_Event& event)
process_keydown_event(event);
hotkey::key_event(event, get_hotkey_command_executor());
process_keyup_event(event);
} else {
process_focus_keydown_event(event);
}
break;

Expand Down
6 changes: 0 additions & 6 deletions src/controller_base.hpp
Expand Up @@ -154,12 +154,6 @@ class controller_base : public video2::draw_layering
// No action by default
}

/** Process keydown (only when the general map display does not have focus). */
virtual void process_focus_keydown_event(const SDL_Event& /*event*/)
{
// No action by default
}

/** Process keydown (always). Overridden in derived classes */
virtual void process_keydown_event(const SDL_Event& /*event*/)
{
Expand Down

0 comments on commit 4659abe

Please sign in to comment.