objects supporting this interface can create gamepad::SourceDevice instances. More...
#include <source-device.h>
Public Member Functions | |
virtual | ~SourceDeviceFactory (void) throw () |
virtual const char * | getName (void) const =0 throw () |
virtual int | getCount (void)=0 |
virtual smart_ptr< SourceDevice > | getSourceDevice (IN int index)=0 |
objects supporting this interface can create gamepad::SourceDevice instances.
Note to implementers (and users): objects supporting this interface are intended to be long-lived. So if you write an object that supports this interface, it should re-poll (or do whatever discovery is necessary) on every API call, and not rely on one-time discovery during object initialization. In particular, it is expected that SourceDeviceFactory::getCount() will be expensive to call.
Definition at line 266 of file source-device.h.
gamepad::SourceDeviceFactory::~SourceDeviceFactory | ( | void | ) | throw () [virtual] |
Definition at line 42 of file source-device.cpp.