home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////////
- // Project Name: [ CDI Class Library - CDI.lib ]
- // Author: [ Dan Farley - 97308096@brookes.ac.uk ]
- // Source File: [ CDI_Input Implementation ]
- // Revision: [ 1.6 ]
- //////////////////////////////////////////////////////////////////////////////////
- #include "CDI.h"
-
- //////////////////////////////////////////////////////////////////////////////////
- // CDI_Input Constructor
- //////////////////////////////////////////////////////////////////////////////////
- CDI_Input::CDI_Input(void)
- {
- m_DirectInput = NULL;
- }
-
- //////////////////////////////////////////////////////////////////////////////////
- // CDI_Input Destructor
- //////////////////////////////////////////////////////////////////////////////////
- CDI_Input::~CDI_Input(void)
- {
- RELEASE(m_DirectInput);
- }
-
- //////////////////////////////////////////////////////////////////////////////////
- // CDI_Input Create
- //////////////////////////////////////////////////////////////////////////////////
- HRESULT CDI_Input::Create(void *hInst)
- {
- return DirectInputCreate(hInst, DIRECTINPUT_VERSION, &m_DirectInput, NULL);
- }
-