The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Attributes | List of all members
controller_base::keyup_listener Class Reference
Inheritance diagram for controller_base::keyup_listener:
Inheritance graph

Public Member Functions

 keyup_listener (controller_base &controller)
 
void handle_event (const SDL_Event &event) override
 
void handle_window_event (const SDL_Event &) override
 
- Public Member Functions inherited from events::sdl_handler
virtual void process_event ()
 
virtual void draw ()
 
virtual void volatile_draw ()
 
virtual void volatile_undraw ()
 
virtual bool requires_event_focus (const SDL_Event *=nullptr) const
 
virtual void process_help_string (int, int)
 
virtual void process_tooltip_string (int, int)
 
virtual void join ()
 
virtual void join (context &c)
 
virtual void join_same (sdl_handler *parent)
 
virtual void leave ()
 
virtual void join_global ()
 
virtual void leave_global ()
 
virtual bool has_joined ()
 
virtual bool has_joined_global ()
 
sdl_handleroperator= (sdl_handler &&)=delete
 Moving would require two instances' context membership to be handled, it's simpler to delete these and require the two instances to be separately constructed / destructed. More...
 
 sdl_handler (sdl_handler &&)=delete
 

Private Attributes

controller_basecontroller_
 

Additional Inherited Members

- Protected Member Functions inherited from events::sdl_handler
 sdl_handler (const bool auto_join=true)
 
 sdl_handler (const sdl_handler &)
 
sdl_handleroperator= (const sdl_handler &)
 
virtual ~sdl_handler ()
 
virtual std::vector< sdl_handler * > handler_members ()
 

Detailed Description

Definition at line 200 of file controller_base.hpp.

Constructor & Destructor Documentation

◆ keyup_listener()

controller_base::keyup_listener::keyup_listener ( controller_base controller)
inline

Definition at line 203 of file controller_base.hpp.

Member Function Documentation

◆ handle_event()

void controller_base::keyup_listener::handle_event ( const SDL_Event &  event)
overridevirtual

Implements events::sdl_handler.

Definition at line 257 of file controller_base.cpp.

References hotkey::keyup_event().

◆ handle_window_event()

void controller_base::keyup_listener::handle_window_event ( const SDL_Event &  )
inlineoverridevirtual

Implements events::sdl_handler.

Definition at line 211 of file controller_base.hpp.

Member Data Documentation

◆ controller_

controller_base& controller_base::keyup_listener::controller_
private

Definition at line 214 of file controller_base.hpp.


The documentation for this class was generated from the following files: