From: Kevin G. <av...@cu...> - 2000-11-26 19:50:43
Is there a cool a way to handle keyboard input under plib? The glut
callback just gives you when a key has been pressed and not when its
been released. I'd like to be able to handle both events.
Cheers for any help
Kev
From: Steve B. <sjb...@ai...> - 2000-11-28 06:15:03
Kevin Glass wrote:
> Is there a cool a way to handle keyboard input under plib?
No - I steer clear of keyboard/mouse bindings because they would prevent you
from choosing between GLUT/GTK/FLTK/whatever.
> The glut
> callback just gives you when a key has been pressed and not when its
> been released.
Aha! Not so! Gotcha!
> I'd like to be able to handle both events.
In GLUT 3.7, there is a key-release callback - same syntax as the
key-down callback.
Check out:
glutKeyboardUpFunc
--
Steve Baker HomeEmail: <sjb...@ai...>
WorkEmail: <sj...@li...>
HomePage : http://web2.airmail.net/sjbaker1
Projects : http://plib.sourceforge.nethttp://tuxaqfh.sourceforge.nethttp://tuxkart.sourceforge.nethttp://prettypoly.sourceforge.net