The Battle for Wesnoth  1.19.13+dev
Classes | Namespaces | Enumerations | Functions
command_executor.hpp File Reference
#include "hotkey_command.hpp"
#include <SDL2/SDL_events.h>
Include dependency graph for command_executor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hotkey::ui_command
 Used as the main parameter for can_execute_command/do_execute_command These functions are used to execute hotkeys but also to execute menu items, (Most menu items point to the same action as a hotkey but not all) More...
 
class  hotkey::command_executor
 
struct  hotkey::command_executor::queued_command
 
class  hotkey::command_executor_default
 

Namespaces

 hotkey
 Keyboard shortcuts for game actions.
 

Enumerations

enum class  hotkey::action_state {
  hotkey::stateless , hotkey::on , hotkey::off , hotkey::selected ,
  hotkey::deselected
}
 

Functions

action_state hotkey::on_if (bool condition)
 Returns action_state::on if condition is true, else action_state::off. More...
 
action_state hotkey::selected_if (bool condition)
 Returns action_state::selected if condition is true, else action_state::deselected. More...
 
void hotkey::jbutton_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::jhat_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::key_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::keyup_event (const SDL_Event &, command_executor *executor)
 
void hotkey::mbutton_event (const SDL_Event &event, command_executor *executor)
 
void hotkey::run_events (command_executor *executor)