How to handle key release.
How to handle key release.
I have some problem. I create a function to handle model walking. When key pressed, I want the model's walking and when key released, I want the model stop walking. My problem is I don't know how to check when key released (I know only how to check when key pressed). Can anyone help me, please? Thank you.
please check the tutorial, wiki and API before posting anything in advanced help.
tutorial - http://irrlicht.sourceforge.net/tut004.html
tutorial - http://irrlicht.sourceforge.net/tut004.html
wiki - http://irrforge.org/index.php/Keyboard_Inputtutorial 4 wrote: If the key 'W' or 'S' was left up, we get the position of the scene node, and modify the Y coordinate a little bit. So if you press 'W', the node moves up, and if you press 'S' it moves down.
api - http://irrlicht.sourceforge.net/docu/st ... event.htmlwiki - keyboard input wrote: // if not PressedDown, the key was lifted up
if (!event.KeyInput.PressedDown)
SEvent structure wrote: bool PressedDown
if not pressed, then the key was left up