NLMISC::IInputDeviceManager Struct Reference

#include <input_device_manager.h>


Detailed Description

Interface for objects that give low level access access to devices (mouse, keyboard, joypads and joysticks). Generally an object implementing this interface will send the appropriate events when a device is 'created'. (Example of implementation : a direct input event emitter)

Definition at line 52 of file input_device_manager.h.

Public Member Functions

virtual IGameDevicecreateGameDevice (const std::string &instanceName)=0 throw (EInputDevice)
virtual void enumerateGameDevice (TDeviceDescVect &descs)=0 throw (EInputDevice)
virtual IKeyboardDevicegetKeyboardDevice ()=0 throw (EInputDevice)
 Create the low level keyboard device if needed (one active at a time for that object, repeated calls returns the same pointer). An exception if thrown if it couldn't be obtained.

virtual IMouseDevicegetMouseDevice (bool hardware)=0 throw (EInputDevice)
 Create the low level mouse device if needed (one active at a time for that object, repeated calls returns the same pointer). An exception if thrown if it couldn't be obtained.

virtual bool isMouseCreated ()=0
virtual void releaseGameDevice (IGameDevice *gd)=0
virtual void releaseKeyboard ()=0
 remove the low level keyboard

virtual void releaseMouse ()=0
 remove the low level mouse


Member Function Documentation

virtual IGameDevice* NLMISC::IInputDeviceManager::createGameDevice const std::string &  instanceName  )  throw (EInputDevice) [pure virtual]
 

virtual void NLMISC::IInputDeviceManager::enumerateGameDevice TDeviceDescVect descs  )  throw (EInputDevice) [pure virtual]
 

virtual IKeyboardDevice* NLMISC::IInputDeviceManager::getKeyboardDevice  )  throw (EInputDevice) [pure virtual]
 

Create the low level keyboard device if needed (one active at a time for that object, repeated calls returns the same pointer). An exception if thrown if it couldn't be obtained.

virtual IMouseDevice* NLMISC::IInputDeviceManager::getMouseDevice bool  hardware  )  throw (EInputDevice) [pure virtual]
 

Create the low level mouse device if needed (one active at a time for that object, repeated calls returns the same pointer). An exception if thrown if it couldn't be obtained.

virtual bool NLMISC::IInputDeviceManager::isMouseCreated  )  [pure virtual]
 

virtual void NLMISC::IInputDeviceManager::releaseGameDevice IGameDevice gd  )  [pure virtual]
 

virtual void NLMISC::IInputDeviceManager::releaseKeyboard  )  [pure virtual]
 

remove the low level keyboard

virtual void NLMISC::IInputDeviceManager::releaseMouse  )  [pure virtual]
 

remove the low level mouse


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 13:46:14 2004 for NeL by doxygen 1.3.6