Hi, this is my first post in this forum
I'm using Irrlich.NET to write simple editor for my game. I create Irrlich device in panel on normal windows form. I was reading that in this situation mouse and keyboard events aren't post to Irrlich. So, how can I post my events to Irrlich.NET.
In normal Irrlicht API for C++ i found method IrrlichDevice::postEventFromUser() but i can't find this method in Irrlicht.NET API.
Thanks in advance.
Posting user events in Irrlicht.NET
Posting user events in Irrlicht.NET
I'm form Poland, sorry for my weak english
Not sure of the answer to this in Irrlicht off hand.. though if you are using a normal windows form and Irrlicht in a window, you should be able to use the keyboard/mouse events from windows as normal by attaching to the events on the form instead of using irrlicht device inputs.
Yeah, I know its not the answer you want to hear, but it should do as a workaround. If this doesn't work please let us know.
Yeah, I know its not the answer you want to hear, but it should do as a workaround. If this doesn't work please let us know.
Yes, right, this is working when i set while (device.Run()) as main loop, but when i want call Irrlicht render and events functions only sometimes when i want redraw content of window because some nodes change orintation or position, this isn't work.
What can I do in this situation?
What can I do in this situation?
I'm form Poland, sorry for my weak english
I ask different. I have this code:
And how can i do somethink with irr.SEvent. How to set some properties of this object?
Code: Select all
irr.SEvent ev = new irr.SEvent();
Irrlicht.Event even = new Irrlicht.Event(ev);
m_viewWnd.m_camera.OnEvent(even);