5 #ifndef __RD_SDL_EVENT_FACTORY__
6 #define __RD_SDL_EVENT_FACTORY__
13 #include "WindowEvent.hpp"
50 #endif //-- __RD_SDL_EVENT_FACTORY__
Factory class that provides static methods for instantiating SDL event source classes.
Definition: SDLEventFactory.hpp:23
static bool initLookupTables()
Initialize the lookup tables.
Definition: SDLEventFactory.cpp:43
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
static std::map< SDL_Keycode, char > sdl_printable_map
Map storing the correspondence between SDLKeys and their corresponding char respresentation.
Definition: SDLEventFactory.hpp:42
static Key makeKey(SDL_Keycode keycode)
Creates a Key from a SDL keycode.
Definition: SDLEventFactory.cpp:23
static std::map< SDL_Keycode, int > sdl_control_map
Map storing the correspondence between SDL_Keys and their corresponding control key value.
Definition: SDLEventFactory.hpp:45
Class that represents a keyboard key.
Definition: Key.hpp:23
Class that represents a window event.
Definition: WindowEvent.hpp:19
static bool initialized
Boolean indicating that the lookup tables have been initialized or not.
Definition: SDLEventFactory.hpp:39
static WindowEvent makeWindowEvent(SDL_WindowEvent windowEvent)
Creates a WindowEvent from a SDL window event structure.
Definition: SDLEventFactory.cpp:80