Eventreceiver + windows form

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
Dave
Posts: 25
Joined: Wed Mar 28, 2007 11:00 am

Eventreceiver + windows form

Post by Dave »

Hello, I'm experiencing a problem with the event receiver. Currently I have it running within a Windows MFC form. The Irrlicht device is created with the HWND of a CButton, which is located in the middle of the form.

Now the problem is that for some reason, I don't get any feedback from the eventreceiver. No mouse or keyboard, nothing. I placed a breakpoint right at the beginning, but it didn't break there.

When I don't embed the Irrlicht window in my form, everything works. I'm able to selected items and move them using the keyboard. And the only thing I changed is wether or not the viewport should be embedded. The rest of the code remains exactly the same.

Does anyone have an idea what the solution might be?
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

If you use a different window to draw with irrlicht in, you have to write your own input handling code.
In this case use the input handling that MFC provides and send them to your event receiver
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
Dave
Posts: 25
Joined: Wed Mar 28, 2007 11:00 am

Post by Dave »

Thanks, I didn't think of that. It works now :)
Post Reply