Yes, I'm already doing that :
this._ISystem = InputSystem.getInstance();
try
{
this._ISystem.registerNewKeyboardAndMouse( this._GCore._canvas.getPeer() );
System.out.println("Keyboard and Mouse registered");
}
catch (InputSystemException e) {System.out.println("Warning, unable to register KB and Mouse");}
this._EAdapter = new EventAdapter(this);
this._ISystem.addInputListener(this._EAdapter);
I get the events on the window but the HUD seem freezed and Frame class method onMouseButtonPressed is never called
I even tried to create a class which implements a WidgetInputListener to make that
this._GCore._GUI.addGlobalInputListener(new GUIAdapter(this));
But it was ineffective.
All my problems are solved replacing
public class GraphicsCore extends RenderLoop
by
public class GraphicsCore extends InputAdapterRenderLoop
But i read that it was a bad idea for "real" games