Re: [Offscreengecko-discuss] keyboard input
Status: Pre-Alpha
Brought to you by:
res2002
|
From: Frank R. <fra...@gm...> - 2009-11-14 14:05:58
|
On 14.11.2009 07:04, Christopher Schaefer wrote: > Howdy, I can't get keyboard input to work at all using the library. I > can see sites, click on links, scroll, etc. Basically everything I > need with the mouse however the keyboard events don't seem to work at > all. Even the enumerated ones that are actually provided in the > header. > > > So, does this actually work and if so are there any working examples I > could look at? I'm so close to this working for me and I need the > keyboard input to work. It certainly worked at some point ;p Well, examples ... nothing interactive in the OSGK sources, unfortunately. There's always the integration into the DarkPlaces engine, albeit the keyboard input is not exactly straightforward. Anyway: http://svn.icculus.org/twilight/trunk/darkplaces/cl_gecko.c?revision=9049&view=markup Otherwise... focus can be an issue, so perhaps try to focus a browser manually with osgk_browser_focus() before sending keyboard input. If you haven't done so, try with something that guaranteedly handles keyboard input (such as an input field) first; possibly simulate a click into that to make absolutely sure everything is set for keyboard input. Lastly, you can show some code. I may (or may not) be able to see something. -f.r. |