MastEventReceiver & movment

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
LosNir
Posts: 43
Joined: Wed Dec 19, 2007 6:38 pm
Location: Israel
Contact:

MastEventReceiver & movment

Post by LosNir »

Hi.

I'm trying to use the class MastEventReceiver (http://irrlicht.sourceforge.net/phpBB2/ ... nst+wchart)

with my FPS camera, its works well, but when i passes the event handler to the creation device, the W/A/S/D/SPACE keys not working.

What can i do? my code:

== Creation: ==

Code: Select all

    irr::SIrrlichtCreationParameters param;
    param.Bits = 16;
    param.AntiAlias = false;
    param.Fullscreen = true;
    param.Stencilbuffer = false;
    param.Vsync = true; 
    param.EventReceiver = &eventReceiver;
== Camera ==

Code: Select all

scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 300.0f, -1, keyMap, 10, true, 0.5f);
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

return false in your event receiver.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Post Reply