Irrlicht + QT + MyEventReceiver

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.

Irrlicht + QT + MyEventReceiver

Postby ritti » Sat Jun 09, 2012 2:50 pm

Hi, im programming a game and followed the Irrlichts tutorial.
Now i have the basic controls for units and need a User Interface
I decided to do it in qt since its quite simple (at least i thought so ^^)
I used the Irrlichts eventreceiver for mouse and keyboard Input and passed it to the device like this:

cpp Code: Select all
MyEventReceiver receiver;
device =        createDevice(driverType, core::dimension2d<u32>(1260, 1004), 16, false, false, false, &receiver);

And used it so:
receiver.GetMouseState().Position and the same with klicks and so on...

Now i found a nice tutorial to include the Irrlichtproject into the QT Project:
viewtopic.php?f=5&t=44658
it works great but I dont know how to use the eventreceiver like i did before
Is it possible to use the Irrlicht Eventreceicer with QT?
How?
I hope you can help me
Tahnks in advance
Ritti
ritti
 
Posts: 54
Joined: Tue Apr 10, 2012 12:09 pm

Re: Irrlicht + QT + MyEventReceiver

Postby CuteAlien » Sun Jun 10, 2012 9:25 pm

Sorry, I got no experience in mixing those. But maybe you can send mouse and keyboard events which you receive in qt to Irrlicht using the postEventFromUser function from the Irrlicht-device (you have to create keyboard and mouseevents).
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5349
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest