Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1013 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: DirectInputSet.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of DirectInputSet.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __DIRECT__INPUT__SET__H__INCLUDED__
  15. #define __DIRECT__INPUT__SET__H__INCLUDED__
  16. #include "DirectInput.h"
  17. class CDirectInputSet
  18. {
  19. public:
  20. CDirectInputSet();
  21. virtual ~CDirectInputSet();
  22. public:
  23. BOOL ConnectToDevice( CDeviceDI *pDeviceDI, int nDeviceBit, int nSensorBit );
  24. void Reset();
  25. public:
  26. int GetInputCount() { return m_nInput; }
  27. CDirectInput *GetInput( int nIndex ) { return (nIndex < m_nInput) ? m_ppInput[nIndex] : NULL; }
  28. private:
  29. CDirectInput **m_ppInput;
  30. int m_nInput;
  31. };
  32. #endif