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() {
@Override
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 :)
Greetings,
Taurion