DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2482
Version: 1.3-feature


Hello, people!
I have been using freeglut for a while, and there are three functions I
really miss in FLTK's glut "emulation":

glutKeyboardUpFunc, glutSpecialUpFunc and glutLeaveMainLoop

The "up" functions are very nice for keeping an array of what keys are
pressed when the mouse is moved. I.e.: 
void keyup( unsigned char key, int x, int y)
{
  if (key < NUM_KEYS)
    w.keydown[key] = 0;
}

and then at mousemove one can do a check, and if the user is pressing "m"
the object would be moved, etc.
I suppose this can be done in other ways with FLTK, but I think the
freeglut team came up with a couple of good ideas I'd be happy to see in
FLTK.

I tried to make my own key-up callback function, and calling it from the
handle:
int UI::handle() {
  switch (Fl::event()) {
  case FL_KEYUP:
    //printf("You released: %c\n", Fl::event_key());
    callMyKeyboardUpFunc(Fl::event_key(), 0, 0); //TODO: FIX, TEST!!
    break;

But for some reason, the handle function is not receiving any events since
I added my glut code.

I'm using version 1.1.10 but I checked glut.h in ver 1.3-current as well,
and the functions I am longing for are absent there too.

Thanks for a great library!


Link: http://www.fltk.org/str.php?L2482
Version: 1.3-feature

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to