#include <OISInputManager.h>
Base Manager class. No longer a Singleton; so feel free to create as many InputManager's as you have windows.
◆ AddOnFactories
All generic devices OIS supports internally (if they are compiled in)
Enumerator |
---|
AddOn_All | |
AddOn_LIRC | |
AddOn_WiiMote | |
◆ InputManager()
InputManager::InputManager |
( |
const std::string & |
name | ) |
|
|
explicitprotected |
◆ ~InputManager()
InputManager::~InputManager |
( |
| ) |
|
|
protectedvirtual |
◆ _initialize()
virtual void OIS::InputManager::_initialize |
( |
ParamList & |
paramList | ) |
|
|
protectedpure virtual |
◆ addFactoryCreator()
- 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. |
◆ createInputObject()
Object * InputManager::createInputObject |
( |
Type |
iType, |
|
|
bool |
bufferMode, |
|
|
const std::string & |
vendor = "" |
|
) |
| |
◆ createInputSystem() [1/2]
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
◆ createInputSystem() [2/2]
- 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
◆ destroyInputObject()
void InputManager::destroyInputObject |
( |
Object * |
obj | ) |
|
◆ destroyInputSystem()
void InputManager::destroyInputSystem |
( |
InputManager * |
manager | ) |
|
|
static |
- Parameters
-
manager | Manager to destroy |
◆ enableAddOnFactory()
◆ getNumberOfDevices()
int InputManager::getNumberOfDevices |
( |
Type |
iType | ) |
|
- Parameters
-
iType | Type that you are interested in |
◆ getVersionName()
const std::string & InputManager::getVersionName |
( |
| ) |
|
◆ getVersionNumber()
unsigned int InputManager::getVersionNumber |
( |
| ) |
|
|
static |
- Returns
- Bits: 1-8 Patch number, 9-16 Minor version, 17-32 Major version
◆ inputSystemName()
const std::string & InputManager::inputSystemName |
( |
| ) |
|
◆ listFreeDevices()
- Returns
- DeviceList which contains Type and vendor of device
◆ removeFactoryCreator()
- Parameters
-
factory | Factory object to remove. Removing a factory will automatically destroy any Objects created from the factory |
◆ m_lircSupport
LIRCFactoryCreator* OIS::InputManager::m_lircSupport |
|
protected |
Extra factory (not enabled by default)
◆ m_VersionName
const std::string OIS::InputManager::m_VersionName |
|
protected |
◆ m_wiiMoteSupport
WiiMoteFactoryCreator* OIS::InputManager::m_wiiMoteSupport |
|
protected |
◆ mFactories
◆ mFactoryObjects
Factory created objects - useful so we can find creator to send destruction request to.
◆ mInputSystemName
const std::string OIS::InputManager::mInputSystemName |
|
protected |
Name of the input system.
The documentation for this class was generated from the following files: