> I have about a dozen buttons which will be used to change 
> menus/options these are read through an FPGA device, I have a 
> driver working that reads the FPGA on a timer and then wakes 
> the user space app on a epoll when a button has been 
> pressed/released. This all works fine but I need to generate 
> events for fltk.

Hmm, OK - well, I guess there are two options here, which I imagine you
already know:
- either tweak the fltk core to insert the key presses directly
- or hook Xtest to poke values into the X11 layer

Either can work, though I actually might favour Xtest, FWIW.

I guess we are talking about buttons surrounding the screen, and you
draw labels/buttons beside the physical buttons, like on an ATM or etc.?

That said, small OEM displays with resistive touch screen overlays are
surprisingly affordable now, even in small numbers, so I'd certainly
consider going that way rather than having physical buttons and
decoding/debouncing them (physical buttons add an awful lot more h/w to
assemble/support and are a lot less flexible in use.)
And it looks cool, too.
The touch screen input just appears like a mouse click, so is easy for
the s/w to cope with.

> I've also tried fltk 2.0 and I now have text working, so I 
> will be going with that I think.

Ah. That's interesting.
Which version of fltk2?
Is it one that's been "tweaked" for nanoX or is it stock from the fltk
tarballs?
If it is stock, then I wonder what it is doing that is different from
fltk-1.3?

Did you try fltk-1.1.10 BTW?
If fltk2 works, fltk-1.1.x may do so also, as IIRC the internal font
handling is similar.
Fltk-1.3 is later than either 1.1 or 2.x, and has more stuff (e.g. the
virtual device layer etc) going on under the covers that might be
implicated in font handling issues...
(Note that fltk2 was never really released as it never reached a state
that was considered stable enough for long enough! If you use it, you
may find some problems, though it mainly works well.)



SELEX Galileo Ltd
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

Reply via email to