50 class mouse_handler_base;
69 virtual void play_slice(
bool is_delay_enabled =
true);
71 void apply_keyboard_scroll(
int x,
int y);
109 virtual display& get_display() = 0;
129 virtual bool have_keyboard_focus();
133 return std::vector<std::string>();
141 bool handle_scroll(
int mousex,
int mousey,
int mouse_flags);
148 void handle_event(
const SDL_Event& event)
override;
170 virtual void show_menu(
const std::vector<config>& items_arg,
int xloc,
int yloc,
bool context_menu,
display& disp);
171 virtual void execute_action(
const std::vector<std::string>& items_arg,
int xloc,
int yloc,
bool context_menu);
175 void long_touch_callback(
int x,
int y);
201 :
events::sdl_handler(false)
202 , controller_(controller)
207 void handle_event(
const SDL_Event& event)
override;
virtual plugins_context * get_plugins_context()
Get (optionally) a plugins context a derived class uses.
void set_scroll_up(bool on)
virtual void process_keyup_event(const SDL_Event &)
Process keyup (always).
void set_scroll_down(bool on)
uint32_t last_scroll_tick_
keyup_listener key_release_listener_
Keyboard shortcuts for game actions.
virtual std::vector< std::string > additional_actions_pressed()
virtual soundsource::manager * get_soundsource_man()
Get (optionally) a soundsources manager a derived class uses.
virtual bool is_browsing() const
controller_base & controller_
bool last_mouse_is_touch_
int show_menu(lua_State *L)
Displays a popup menu at the current mouse position Best used from a [set_menu_item], to show a submenu.
keyup_listener(controller_base &controller)
virtual void process_keydown_event(const SDL_Event &)
Process keydown (always).
virtual void process_focus_keydown_event(const SDL_Event &)
Process keydown (only when the general map display does not have focus).
void set_scroll_right(bool on)
size_t long_touch_timer_
Context menu timer.
Handling of system events.
virtual hotkey::command_executor * get_hotkey_command_executor()
Optionally get a command executor to handle context menu events.
void set_scroll_left(bool on)
const game_config_view & game_config_
Class that keeps track of all the keys on the keyboard.