Topic Author
Posts: 2
Joined: 14 Feb 2012, 20:15

NoesisGUI and DirectInput

18 May 2012, 22:52


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:


Any advice?

Best Regards
User avatar
Site Admin
Posts: 2255
Joined: 22 Dec 2011, 19:20

Re: NoesisGUI and DirectInput

21 May 2012, 16:59

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() };

In a future version this problem will be fixed.
Topic Author
Posts: 2
Joined: 14 Feb 2012, 20:15

Re: NoesisGUI and DirectInput

21 May 2012, 19:32


I'll try out ASAP....
User avatar
Site Admin
Posts: 3139
Joined: 20 Jan 2012, 17:18

Re: NoesisGUI and DirectInput

14 Sep 2012, 13:24

Fixed in 0.9.5

Who is online

Users browsing this forum: Google [Bot] and 1 guest