On 30/11/11 08:20, Terry Welsh wrote: > Hi, > I'm using FLTK 2, and I have a class derived from GlWindow. My handle() > function gets called for almost every key on the keyboard, but not when I > press backspace or delete. Is this expected behavior? Is there a way to get > events for these keys?
Urgh, I'm not even sure. So in theory, the answer to "Is this expected?" is no, while "is there a way to get events for these keys?" is yes. However: OpenGL compatibility with FLTK2 (especially with keyboards and whatnot) is achieved by emulating certain bits of OGL functionality, to make it work properly with fltk. As such, there are a few really dirty hacks going on to (try to) make things work as they should. Occasionally, however, things stop working. However, in saying that this doesn't automagically make fltk the problem; there could be a whole raft of issues to do with your platform, or code, or etc. If you could post a minimal, compilable example of your current code that shows the problem, this would be fantastic. I'll take a look if I get the time, though at the moment that's a rather large if. In the meantime, I'd suggest using fltk1.3 -- this is far far more stable than 2.0 and is less likely to have as many bugs. If you really desperately need 2.0 compatibility, you'll probably want to wait until fltk3 comes out (and I get the 2.0 compatibility layer in, too, though like I said I'm struggling for time at the moment). HTH, Ben _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

