2 /* Copyright (c) Mark J. Kilgard, 1997. */
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
14 glutKeyboardFunc(GLUTkeyboardCB keyboardFunc
)
16 __glutChangeWindowEventMask(KeyPressMask
,
17 keyboardFunc
!= NULL
|| __glutCurrentWindow
->special
!= NULL
);
18 __glutCurrentWindow
->keyboard
= keyboardFunc
;
22 glutSpecialFunc(GLUTspecialCB specialFunc
)
24 __glutChangeWindowEventMask(KeyPressMask
,
25 specialFunc
!= NULL
|| __glutCurrentWindow
->keyboard
!= NULL
);
26 __glutCurrentWindow
->special
= specialFunc
;