Robot Devastation
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
rd::SDLEventFactory Class Reference

Factory class that provides static methods for instantiating SDL event source classes.

#include <SDLEventFactory.hpp>

Static Public Member Functions

static Key makeKey (SDL_Keycode keycode)
 Creates a Key from a SDL keycode.
 
static WindowEvent makeWindowEvent (SDL_WindowEvent windowEvent)
 Creates a WindowEvent from a SDL window event structure.
 
static bool initLookupTables ()
 Initialize the lookup tables.
 

Private Member Functions

 SDLEventFactory (const SDLEventFactory &)
 

Static Private Attributes

static bool initialized = false
 Boolean indicating that the lookup tables have been initialized or not.
 
static std::map< SDL_Keycode, char > sdl_printable_map = std::map<SDL_Keycode, char>()
 Map storing the correspondence between SDLKeys and their corresponding char respresentation.
 
static std::map< SDL_Keycode, int > sdl_control_map = std::map<SDL_Keycode, int>()
 Map storing the correspondence between SDL_Keys and their corresponding control key value.
 

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