#include <event_map.hpp>
Definition at line 72 of file event_map.hpp.
Public Member Functions | |
event_map (const string &fname) | |
bool | handle_event (const SDL_Event &e, scenegraph::simulation *sim) |
~event_map () | |
Static Public Member Functions | |
static T * | global_instance () |
Private Member Functions | |
void | load_events (const string &fname) |
void | load_keyboard_events (gsgl::data::config_record &) |
Private Attributes | |
data::dictionary < data::dictionary< int, int > , int > | key_events |
~event_map | ( | ) |
Definition at line 240 of file event_map.cpp.
static T* global_instance | ( | ) | [inline, static, inherited] |
Reimplemented in broker, global_register, logger, global_register< gsgl::data::broker_creator, gsgl::data::dictionary< gsgl::data::broker_creator *, gsgl::string > >, global_register< gsgl::data::log_target, gsgl::data::list< gsgl::data::log_target * > >, and global_register< gsgl::data::log_target >.
Definition at line 70 of file singleton.hpp.
Referenced by widget::button_down_here(), font::font(), tabbox::handle_event(), material::material(), model_part::model_part(), and texture::texture().
bool handle_event | ( | const SDL_Event & | e, | |
scenegraph::simulation * | sim | |||
) |
Definition at line 246 of file event_map.cpp.
References gsgl::scenegraph::ALT_MODIFIER, gsgl::scenegraph::CTRL_MODIFIER, sg_event::get_code(), simulation::handle_event(), event_map::key_events, and gsgl::scenegraph::SHIFT_MODIFIER.
Referenced by application::run().
void load_events | ( | const string & | fname | ) | [private] |
Definition at line 282 of file event_map.cpp.
References config_record::get_children(), config_record::get_name(), and event_map::load_keyboard_events().
Referenced by event_map::event_map().
void load_keyboard_events | ( | gsgl::data::config_record & | keyboard_conf | ) | [private] |
Definition at line 303 of file event_map.cpp.
References gsgl::scenegraph::ALT_MODIFIER, gsgl::scenegraph::CTRL_MODIFIER, config_record::get_children(), countable::is_empty(), event_map::key_events, string::left_substring(), gsgl::scenegraph::SHIFT_MODIFIER, string::size(), string::substring(), string::trim(), and string::w_string().
Referenced by event_map::load_events().
data::dictionary<data::dictionary< int, int >, int> key_events [private] |
Definition at line 76 of file event_map.hpp.
Referenced by event_map::handle_event(), and event_map::load_keyboard_events().