Topic: How to use SmoothEventReceiver (addon type)

How exactly should we be using the SmoothEventReceiver type?
I can't figure out how to make it work in the Movement example, and, afaik, it is not used in any of the addon samples.

Re: How to use SmoothEventReceiver (addon type)

greetings Plash smile  my apologies on the delay but im a bit swamped in tasks at the momemt.  the goal of the smooth event receiver is to create an event interface similar to B3Ds interface.  so instead of having to create a custom event receiver in your game (or multiples) and override the OnEvent to handle what you want, you seteventreceiver to an instance of smootheventreceiver and then call the methods to check the input queue.

setup would look something like:

Local device:IrrlichtDevice = ..
    IrrlichtDevice.Create(EDT_BURNINGVIDEO, _DIMENSION2DI(640, 480), 16, ..
        False, False, False, Null)

Local events:SmoothEventReceiver = SmoothEventReceiver.createReceiver()

device.setEventReceiver(events)

' check for key press
If events.IsKeyDown(EKEY_ESCAPE) Then .....

i would recommend storing the instance of the SmoothEventReceiver either globally or somewhere in your game framework to prevent having to recast it everywhere when calling device.getEventReceiver().

hope this helps!