Hi!
I've tried to modify the JMESwingTest example from the jmetest.util package this way:
from
input.addAction( new InputAction() {
public void performAction( InputActionEvent evt ) {
logger.info( evt.getTriggerName() );
}
}, InputHandler.DEVICE_MOUSE, InputHandler.BUTTON_ALL, InputHandler.AXIS_NONE, false );
to
input.addAction( new InputAction() {
public void performAction( InputActionEvent evt ) {
logger.info( evt.getTriggerName() );
}
}, InputHandler.DEVICE_KEYBOARD, KeyInput.KEY_SPACE, InputHandler.AXIS_NONE, false );
and it doesn't have any effect. The same input handler works if Swing integration is not used.
What am I doing wrong?
Regards,
Ovidiu