(VB.NET) Capture Keyboard and Mouse Events

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Maxsilver
Posts: 1
Joined: Thu Dec 28, 2006 12:52 am

(VB.NET) Capture Keyboard and Mouse Events

Post by Maxsilver »

Hi,

Just started working with Irrlicht 3D Graphics Engine in Visual Basic .NET. Got the engine to draw scenes ok, using the tutorial included, but I'm having problems getting my character to move. I can get the character moving, using a position node in the frame render loop, but I cant get map it to Keyboard or Mouse Events.

I've tried the Keyboard/Mouse events in Irrlicht.Net, the Class provided by a person on this forum, and can't get either to work reliably.

So, I thought about using VB Forms to capture and control movement. It works, kinda. I can set events in the Form to make Irrlicht do things (like move an animated mesh), but Irrlicht stops rendering when the form has focus.

My questions are...

1) How can I get Irrlicht to draw frames _even_ when its not in focus?

2) (More importantly), how can I get Irrlicht to draw its rendered frames *inside* a VB form (say, in a picturebox object, in a form) This way, I can use the VB Form to capture events, and send them to Irrlicht.

I appreciate any responses, thanks in advance,
-Matt
Locked