Problems with IEventReceiver

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
Jon
Posts: 1
Joined: Fri Jan 06, 2006 3:09 am

Problems with IEventReceiver

Post by Jon »

Hey, trying to write the Tutorial 4.Movement in Visual Basic, but I cant get the class MyEventReceiver to work,

First of all, I written the class as follows :

Public Class receiver
Implements Irrlicht.IEventReceiver

'Sub New()
'MyBase.new()

'End Sub

Public Function OnEvent(ByVal e As Irrlicht.Event) As Boolean Implements IEventReceiver.OnEvent
If (e.Key = KeyCode.KEY_KEY_S) Then
Console.WriteLine("HELLO")
Return True

End If
Return False
End Function



Secondly, I dont onderstand how to link this to the device. In the C# tutorial it is placed in the createDevice() , but vb.net versjon dosn't have this method....
What to to, what to do........
Locked