#include <SDLTranslator.h>
Inheritance diagram for cmil::SDL::SupportedFactory:
Public Member Functions | |
std::string | getName () const |
Static Public Member Functions | |
static DeviceTranslator *const | create (const Supported type, System *const sys) |
Definition at line 335 of file SDLTranslator.h.
DeviceTranslator *const cmil::SDL::SupportedFactory::create | ( | const Supported | type, | |
System *const | sys | |||
) | [static] |
Definition at line 720 of file SDLTranslator.cpp.
References cmil::SDL::Controllers, cmil::SDL::Keyboards, and cmil::SDL::Mice.
Referenced by cmil::SDL::SDLSystem::init().
00720 { 00721 switch(type) { 00722 case Controllers: 00723 return new SDLControllers(sys); 00724 break; 00725 case Keyboards: 00726 return new SDLKeyboards(sys); 00727 break; 00728 case Mice: 00729 return new SDLMice(sys); 00730 break; 00731 default: 00732 return NULL; 00733 break; 00734 } 00735 };
Here is the caller graph for this function:
std::string cmil::SDL::SupportedFactory::getName | ( | ) | const [inline, virtual] |