home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / CDX.ZIP / Src / Cdi / Input.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-14  |  1.2 KB  |  32 lines

  1. //////////////////////////////////////////////////////////////////////////////////
  2. // Project Name: [ CDI Class Library - CDI.lib ]
  3. // Author:       [ Dan Farley - 97308096@brookes.ac.uk ]
  4. // Source File:  [ CDI_Input Implementation ]
  5. // Revision:     [ 1.6 ]
  6. //////////////////////////////////////////////////////////////////////////////////
  7. #include "CDI.h"
  8.  
  9. //////////////////////////////////////////////////////////////////////////////////
  10. // CDI_Input Constructor
  11. //////////////////////////////////////////////////////////////////////////////////
  12. CDI_Input::CDI_Input(void)
  13. {
  14.     m_DirectInput = NULL;
  15. }
  16.  
  17. //////////////////////////////////////////////////////////////////////////////////
  18. // CDI_Input Destructor
  19. //////////////////////////////////////////////////////////////////////////////////
  20. CDI_Input::~CDI_Input(void)
  21. {
  22.     RELEASE(m_DirectInput);
  23. }
  24.  
  25. //////////////////////////////////////////////////////////////////////////////////
  26. // CDI_Input Create
  27. //////////////////////////////////////////////////////////////////////////////////
  28. HRESULT CDI_Input::Create(void *hInst)
  29. {
  30.     return DirectInputCreate(hInst, DIRECTINPUT_VERSION, &m_DirectInput, NULL);
  31. }
  32.