EPA_ACTION_JUMP is mapped to spacebarkey
problem is i have to keep it pressed to play the whole animation
want it to get so that when i press the spacebar 1 time
it plays the animation 1 time
Maybe problem is elsewhere ? I checkd setMD2Animation() and it takes aniamtion parameters from model (start frame, end frame and speed) and sets valuse for setAnimationSpeed() and setFrameLoop(). Maybe on releasing spacebar you set new FrameLoop and causes the problem.
I added node->setMD2Animation(EMAT_JUMP); to "hallo world" tutorial and it works perfectly fine.