|
From: doug s. <hig...@ho...> - 2013-05-28 17:58:46
|
> > which shows I'm getting keyboard and mouse now. I didn't get the funny keyboard characters. Is that something to do with language packs in the OS? If so there's something we did for text nodes that convert UTF8 to 32 bit chars -Component_Text.c L.721- so it might need a function to convert back from 32 bit to UTF8 2byte sequence? > > I figured where the funny chars are coming from... > It's from key modifiers like ALT,CTRL,SHIFT etc... > And I don't see any handling of these modifiers within handle_Xevents, > > The reason why they show up as "funky" chars in my screen has to do > with this: > > http://stackoverflow.com/questions/1688989/xlookupstring-returning-a-utf-8-code-latin-1-to-utf-8 > > tl;dr - According to the documentation, XLookupString is supposed to > return a Latin-1 code. > > I suppose that as long as there is no important key combi that might > use any of these modifiers it should be allright... > > Apart from that, it is actually starting to look quite good in terms of > potential functionality... > Paulo, thanks. I haven't got the .rgb file naming worked out yet - I did it wrong in win32, and I want to get them harmonized. Using the ALT,CTRL,SHIFT and other keys I was able to get some funny chars^. So as you say, options: a) convert back&forth to/from UTF8 for recording to the file OR b) just leave them as funny chars if they playback OK -Doug ^It might be nice to go from the int*4 to UTF8 - and we have functions already to go UTF8 to int32, if not too much trouble, and in such a way it works for all OS. Using CTRL, ALT and SHIFT with some other chars I get (in the /recording/1_wrl.fwplay) 15 42523.093000 ",3," "" 16 42523.609000 "" "" 19 42525.109000 "" "" 20 42525.609000 ",2," "" 21 42526.109000 "" "" 22 42526.609000 "" "" 23 42527.125000 "Ý,2,,1,Ý,3,,3," "" 24 42527.625000 "" "" 29 42530.140000 "" "" 30 42530.640000 "" "6,0,419,162,0;" 31 42531.140000 ",3," "" 32 42531.640000 "" "" 33 42532.156000 "" "" 34 42532.656000 ",2," "" 35 42533.156000 "" "" 36 42533.656000 "" "" 37 42534.171000 "" "" 38 42534.671000 "Ü,2,|,1,Ü,3," "" 39 42535.171000 ",3," "" |