|
From: doug s. <hig...@ho...> - 2013-05-27 22:56:53
|
>>> I changed to integer mouse coordinates, intercepted earlier so they apply to statusbarHud as well as navigation, clicking and picking. >>> . >>> To do this I changed the linux mouse/keyboard handling code and did not verify it on a linux system ** please verify** >> freewrl -R ../freewrl/tests/1.wrl >> >> I do see a file being saved here @ recording/1_wrl.fwplay but I don't >> think the mouse movements and clicks are being recorded. >> The keyboard keystrokes seem to be collected but in a weird way I'm not >> sure I understand. >> >> Also, I see some funny characters ... >> >> 22 1369662229.734600 "�,2,/,2," "" >> 23 1369662230.235250 "/,3,�,3," "" >> 24 1369662230.735990 "" "" >> 25 1369662231.236659 "" "" >> 26 1369662231.737341 "d,2,d,3," "" >> > very interesting on the keystrokes - I don't know what's going on. > With the mouse, I forgot to set if(1) and if(0) in handle_Xevents in MainLoop.c around line 1424 and 1456 - OK I did it now and checked it in. > If you update, re-build and re-run you should see the mouse coords. , Paulo, I got the testing to run a bit in Ubuntu, with wrong snapshot naming: """ fixture/1_wrl_24.snap do Snapshot ... cannot open temp file (freewrl_tmp/fixture/1_wrl_24.snap.0001.rgb) for writing fixture/1_wrl_25.snap """ It's supposed to be fixture/1_wrl_24.snap or -now that I know what snap meant- preferably .rgb. I can look at that tomorrow. And I got something in the recordings/1_wrl.fwplay ... 20 1369694120.450172 "" "6,0,299,399,0;6,0,297,352,0;" 21 1369694120.950736 "" "6,0,290,326,0;" 22 1369694121.452277 "" "" 23 1369694121.953646 "" "" 24 1369694122.456532 "x,2," "" 25 1369694122.956802 "x,3," "" 26 1369694123.462436 "" "" ,,, 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? -Doug |