123
This commit is contained in:
53
CryInput/CryInput.cpp
Normal file
53
CryInput/CryInput.cpp
Normal file
@@ -0,0 +1,53 @@
|
||||
// CryInput.cpp : Defines the entry point for the DLL application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#ifndef _XBOX
|
||||
_ACCESS_POOL;
|
||||
#endif //_XBOX
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ILog.h>
|
||||
#include <IInput.h>
|
||||
#include "Input.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#define DEBUG_CLIENTBLOCK new( _NORMAL_BLOCK, THIS_FILE, __LINE__)
|
||||
#define new DEBUG_CLIENTBLOCK
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Pointer to Global ISystem.
|
||||
static ISystem* gISystem = 0;
|
||||
ISystem* GetISystem()
|
||||
{
|
||||
return gISystem;
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifndef _XBOX
|
||||
BOOL APIENTRY DllMain( HANDLE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
#endif //_XBOX
|
||||
|
||||
IInput *CreateInput( ISystem *pSystem,void* hinst, void* hwnd, bool usedinput)
|
||||
{
|
||||
gISystem = pSystem;
|
||||
CInput *pInput=new CInput;
|
||||
if (!pInput->Init(pSystem,(HINSTANCE)hinst,(HWND)hwnd,usedinput))
|
||||
{
|
||||
delete pInput;
|
||||
return NULL;
|
||||
}
|
||||
return pInput;
|
||||
}
|
||||
|
||||
#include <CrtDebugStats.h>
|
||||
Reference in New Issue
Block a user