> I have to implement an application which have to handle > external keyboard. External keyboard will be connected with > RS232 (or USB it is not decided yet). Handling of keyboard is > not a problem, I mean I can implement something which will > read from this keyborad.
If it's USB, and appears as some sort of HID, then there's a good chance the underlying OS will just handle this for you. > Question: How can I integrate this into FLTK event handling? > Is there any user defined events? Not as such, but you can (sort of) forcibly stuff keyboard events back into the fltk event queue - there were some posts about that a few months back, where someone was trying to build an on-screen keypad on a touch screen. Might have some relevant tips for you? However, that would probably only allow your app to see the keyboard, not all the apps on the system - that may not matter for your use of course. > Of course I can easely fix the code (for event handling) or > at least for windows I can inject (perhaps) meesages in > message queue. But I will use this in Linux too. On an X-windows system (e.g. Linux...) there are a few things you can do at a "system wide" level to make your keyboard visible to the system (and not just to your app.) For example you can use the Xtest extension to stuff keyboard events into the event queue (kind of like what you are proposing for win32, I suppose.) SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

