Question Key pressed / released

Hi all,

currently I'm figuring out, whether jME is applicable for "abusing" it as foundation

for my diploma thesis to implement a graph visualization software.

My problem is how to receive key released events. I used the following code

within my InputHandler:

KeyBindingManager.getKeyBindingManager().set("navigation_modifier", KeyInput.KEY_SPACE);
addAction(createSpaceAction(), "navigation_modifier", false);


private KeyInputAction createSpaceAction() {
   return new KeyInputAction() {         
      public void performAction(InputActionEvent evt) {
         System.out.println("Keyinput " + evt.getTriggerName() + " " + evt.getTriggerPressed());


I receive events only if the key was pressed but not on releasing it.
I searched in the documentation and the topics here without success.
Do I have to write my own Listener or where am i wrong?
Thanks for any help and please excuse, if my english isn't perfect  :)


Have a look into the input guide in the Wiki and into TestInputHandler if you are using jME .10 or later (e.g. CVS). Getting release events is done in that test.

If you are using .9 or earlier consider switching to a newer version.