[email protected]
Topic Author
Posts: 2
Joined: 14 Feb 2012, 20:15

NoesisGUI and DirectInput

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
 
User avatar
sfernandez
Site Admin
Posts: 2991
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() };

NsGetKernel()->InitSystems(systems);
In a future version this problem will be fixed.
 
[email protected]
Topic Author
Posts: 2
Joined: 14 Feb 2012, 20:15

Re: NoesisGUI and DirectInput

21 May 2012, 19:32

Thanks!

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

Re: NoesisGUI and DirectInput

14 Sep 2012, 13:24

Fixed in 0.9.5

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 11 guests