How to read keyboard and mouse ??

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
yrend

How to read keyboard and mouse ??

Post by yrend »

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
Guest

Post by Guest »

I am sorry ^^"
problem is solved ^^
thanks anybody look this thread ^^"
Post Reply