xirtamatrix wrote:Thanks Escence,
but I figure I must be missing something.
And that something is: where is the message loop?
So app.exec() in main captures Qt events, and we have mapped selctively some keys of Qt to Irrlicht, but where should the Irrlicht message loop be? Now we cant have it in main.cpp obviously... so... humn... (scratching head)
I'm probably missing something very fundamental here that everyone else seems to know... well, since I'm quite a beginner in Irrlicht, please forgive me.
Any help would be much appreciated!
scene::ICameraSceneNode* cam = manager->addCameraSceneNodeFPS(0,100,0.5f,-1,0,false,0,false,true );
setMouseTracking(true);//enable constant mouse movement
virtual void mouseMoveEvent( QMouseEvent* event );
void QIrrlichtWidget::mouseMoveEvent( QMouseEvent* event )
irrEvent.EventType = irr::EET_MOUSE_INPUT_EVENT;
if ( device != 0 )
irrEvent.MouseInput.Event = irr::EMIE_MOUSE_MOVED;
irrEvent.MouseInput.X = event->x();
irrEvent.MouseInput.Y = event->y();
irrEvent.MouseInput.Wheel = 0.0f; // Zero is better than undefined
device->postEventFromUser( irrEvent );
... so... humn... (scratching head)
Escen wrote:Don't do that to much, or you getting bald early.
Virion wrote:I'm using FPS camera with Qt too and it's cool. I'm using Qt's input for almost everything except when moving around with FPS camera, which I transfer the input from Qt to Irrlicht. When I don't have to move around I can switch back to normal, static camera using right click.
conclusion: FPSCamera rocks.
Users browsing this forum: Triadian and 1 guest