#include <InputManager.h>
Protected Methods | |
| InputManager () | |
| InputManager Constructor. More... | |
| virtual | ~InputManager () |
| InputManager Destructor. More... | |
| InputManager (const gadget::InputManager &obj) | |
| Constructor is hidden, so no copying is allowed. More... | |
| void | operator= (const gadget::InputManager &k) |
The Input Manager, handles all the details behind organizing the input devices in the library. It provides an API for adding devices by their JCCL config element and deleting them by their element (or just their string name).
Proxies are used to abstract away from the devices so any type and number of devices may be accessed in the same way. These proxies are also set up by config elements and should be accessed by number, rather than name (for speed).
Definition at line 71 of file InputManager.h.
|
|
InputManager Constructor.
Definition at line 74 of file InputManager.cpp.
00075 {
00076
00077 }
|
|
|
InputManager Destructor.
Definition at line 82 of file InputManager.cpp.
00083 {
00084 for (tDevTableType::iterator a = mDevTable.begin(); a != mDevTable.end(); ++a) // Stop all devices
00085 {
00086 if ((*a).second != NULL)
00087 {
00088 (*a).second->stopSampling();
00089 delete (*a).second;
00090 }
00091 }
00092
00093 // Delete all the proxies
00094 for ( std::map<std::string, Proxy*>::iterator j = mProxyTable.begin();
00095 j != mProxyTable.end();
00096 ++j )
00097 {
00098 delete (*j).second;
00099 }
00100 }
|
|
|
Constructor is hidden, so no copying is allowed.
Definition at line 82 of file InputManager.h.
00083 : jccl::ConfigElementHandler(obj)
00084 {
00085 /* Do nothing. */ ;
00086 }
|
|
|
Definition at line 88 of file InputManager.h.
00089 {
00090 /* Do nothing. */ ;
00091 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002