greetings
my apologies on the response delay. unfortunately i am unable to replicate this issue. here is a modified hello world that prints keys pressed using the SmoothEventReceiver. please give it a whirl and see if you get the issue here as well. also, what version of BMAX are your running? what OS? we may need to rebuild mods.
SuperStrict
Framework Irrlicht.Core
Import Irrlicht.AddOns
?MacOS
Local device:IrrlichtDevice = ..
IrrlichtDevice.Create(EDT_OPENGL, _DIMENSION2DI(640, 480), 16, ..
False, False, False, Null)
?Not MacOS
Local device:IrrlichtDevice = ..
IrrlichtDevice.Create(EDT_BURNINGVIDEO, _DIMENSION2DI(640, 480), 16, ..
False, False, False, Null)
?
If Not device Then Return
device.setWindowCaption("Hello World! - Irrlicht Engine Demo")
Local Receiver:SmoothEventReceiver = SmoothEventReceiver.createReceiver()
device.setEventReceiver(Receiver)
Local driver:IVideoDriver = device.getVideoDriver()
Local smgr:ISceneManager = device.getSceneManager()
Local guienv:IGUIEnvironment = device.getGUIEnvironment()
guienv.addStaticText("Hello World! This is the Irrlicht Software renderer!", ..
_RECTI(10,10,260,22), True)
Local mesh:IAnimatedMesh = smgr.getMesh("../../media/sydney.md2")
If Not mesh Then Return
Local node:IAnimatedMeshSceneNode = smgr.addAnimatedMeshSceneNode( mesh )
If node
node.setMaterialFlag(EMF_LIGHTING, False)
node.setMD2AnimationFromType ( EMAT_STAND )
node.setMaterialTexture( 0, driver.getTexture("../../media/sydney.bmp") )
EndIf
smgr.addCameraSceneNode(Null, _VECTOR3DF(0,30,-40), _VECTOR3DF(0,5,0))
While device.run()
driver.beginScene(True, True, _SCOLOR(255,100,101,140))
smgr.drawAll()
guienv.drawAll()
Local key:Int = Receiver.popkey()
Print key
driver.endScene()
EndWhile
device.drop()