//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: DirectInputSet.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of DirectInputSet.h //---------------------------------------------------------------------------- #ifndef __DIRECT__INPUT__SET__H__INCLUDED__ #define __DIRECT__INPUT__SET__H__INCLUDED__ #include "DirectInput.h" class CDirectInputSet { public: CDirectInputSet(); virtual ~CDirectInputSet(); public: BOOL ConnectToDevice( CDeviceDI *pDeviceDI, int nDeviceBit, int nSensorBit ); void Reset(); public: int GetInputCount() { return m_nInput; } CDirectInput *GetInput( int nIndex ) { return (nIndex < m_nInput) ? m_ppInput[nIndex] : NULL; } private: CDirectInput **m_ppInput; int m_nInput; }; #endif