Base Manager class.
More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/ois/OISInputManager.h>
Base Manager class.
No longer a Singleton; so feel free to create as many InputManager's as you have windows.
All generic devices OIS supports internally (if they are compiled in)
Enumerator |
---|
AddOn_All |
|
AddOn_LIRC |
|
AddOn_WiiMote |
|
InputManager::InputManager |
( |
const std::string & |
name | ) |
|
|
protected |
InputManager::~InputManager |
( |
| ) |
|
|
protectedvirtual |
virtual void OIS::InputManager::_initialize |
( |
ParamList & |
paramList | ) |
|
|
protectedpure virtual |
- Parameters
-
factory | Factory instance to add Make sure you do not delete the factory before devices created from the factory are destroyed (either by calling RemoveFactoryCreator, or shutting down the input system). Order should be something like the following: Create Input System Create Factory Instance AddFactoryCreator(factory) Create a device from the InputManager (device created by factory) One of the follwoing: removeFactoryCreator(factory) inputManager->destroyInputObject(obj) destroyInputSystem(inputManager) destroy Factory Instance You can safely delete the factory instance once you have removed it or shut down the input manager. |
Object * InputManager::createInputObject |
( |
Type |
iType, |
|
|
bool |
bufferMode, |
|
|
const std::string & |
vendor = "" |
|
) |
| |
InputManager * InputManager::createInputSystem |
( |
std::size_t |
winHandle | ) |
|
|
static |
- Parameters
-
winHandle | Contains OS specific window handle (such as HWND or X11 Window) |
- Returns
- A pointer to the created manager, or raises Exception
- Parameters
-
paramList | ParamList contains OS specific info (such as HWND and HINSTANCE for window apps), and access mode. |
- Returns
- A pointer to the created manager, or raises Exception
void InputManager::destroyInputObject |
( |
Object * |
obj | ) |
|
- Parameters
-
manager | Manager to destroy |
int InputManager::getNumberOfDevices |
( |
Type |
iType | ) |
|
- Parameters
-
iType | Type that you are interested in |
const std::string & InputManager::getVersionName |
( |
| ) |
|
unsigned int InputManager::getVersionNumber |
( |
| ) |
|
|
static |
- Returns
- Bits: 1-8 Patch number, 9-16 Minor version, 17-32 Major version
const std::string & InputManager::inputSystemName |
( |
| ) |
|
- Returns
- DeviceList which contains Type and vendor of device
- Parameters
-
factory | Factory object to remove. Removing a factory will automatically destroy any Objects created from the factory |
LIRCFactoryCreator* OIS::InputManager::m_lircSupport |
|
protected |
Extra factory (not enabled by default)
const std::string OIS::InputManager::m_VersionName |
|
protected |
WiiMoteFactoryCreator* OIS::InputManager::m_wiiMoteSupport |
|
protected |
Factory created objects - useful so we can find creator to send destruction request to.
const std::string OIS::InputManager::mInputSystemName |
|
protected |
Name of the input system.
The documentation for this class was generated from the following files: