Page 1 of 1

NoesisGUI and DirectInput

Posted: 18 May 2012, 22:52
HI!

I'm try to render some .xaml using NoesisGUI 0.9.4 and DX9. I can render without any issue...problem is that DirectInput's are lost....I see GUI+ Rendered Scene but the character is no longer responding to mouse+keyboard input.

I've tried with tux.xaml or Time.xaml.....they just render right...but I'm loosing my DI inputs :-/
If I disable NoesisGUI creation everything is just fine...

I lost the input just after the calling:

NsGetKernel()->InitSystems();


Any advice?

Best Regards

Re: NoesisGUI and DirectInput

Posted: 21 May 2012, 16:59
by sfernandez
The problem is that default NsGetKernel()->InitSystems() is initializing our InputSystem implementation (that uses DirectInput), but this system is not really needed in the UI by SDK users.

As a temporal fix you can initialize systems manually like this:
NsSymbol systems[] = { NsSymbol("ConfigSystem"), NsSymbol("TimerSystem"),
    NsSymbol("ResourceDbSystem"), NsSymbol("ResourceSystem"), NsSymbol("RenderSystem"),
    NsSymbol("VGLFontSystem"), NsSymbol("VGLSystem"), NsSymbol("UISystem"),
    NsSymbol::Null() };

NsGetKernel()->InitSystems(systems);
In a future version this problem will be fixed.

Re: NoesisGUI and DirectInput

Posted: 21 May 2012, 19:32
Thanks!

I'll try out ASAP....

Re: NoesisGUI and DirectInput

Posted: 14 Sep 2012, 13:24
by jsantos
Fixed in 0.9.5