hi , everybody
How to read keyboard and mouse ?
I have been read "Tutorial 4.Movement"
but , I using IEventReceiver .... program crash
Error message is
"unhandled exception in Tank.exe (IRRLICHT.DLL) : 0xC0000005 : Access Violation"
------------------------------- My test Program ------------------------------
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
MyEventReceiver receiver;
g_Device = createDevice(video::EDT_DIRECTX9, core::dimension2d<s32>(800, 600), 16, false,
false, &receiver); // work
IrrlichtDevice *device = g_Device; // work
device->setWindowCaption(L"Tank"); // work
g_Driver = device->getVideoDriver(); // work
g_Smgr = device->getSceneManager(); // work
g_GuiEnv = device->getGUIEnvironment(); // work
g_Driver->setTextureCreationFlag(video::ETCF_ALWAYS_16_BIT, true); // work
scene::IAnimatedMesh *HumanAniMesh = g_Smgr->getMesh("Test Media/cylinder.x"); // crash