|
From: Paulo E. C. <pau...@gm...> - 2013-05-28 17:33:42
|
On 27/05/13 23:56, doug sanden wrote: > 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... |