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........