#ifndef __DIOBJECT_H__
#define __DIOBJECT_H__

#ifndef   __HOME__
#include "include\DIObject.cpp"
#else
#include "d:\job\include\DIObject.cpp"
#endif

bool					cDIObject::InitDirectInput( HINSTANCE hInstance ){
	if( DirectInput8Create( hInstance , DIRECTINPUT_VERSION ,
		IID_IDirectInput8 , ( void ** )&Object , NULL ) != DI_OK ){
			MessageBox( 0 , "Не удалось инициализировать DirectInput." , "Ошибка" , 0 );
			return( false );
	}
	return( true );
}

void					cDIObject::Release( void ){
	if( Object ){
		Object->Release();
	}
}

#endif