source: trunk/src/opengl/glut/glut_key.c

Last change on this file was 2689, checked in by jeroen, 26 years ago

* empty log message *

File size: 806 bytes
Line 
1/* $Id: glut_key.c,v 1.2 2000-02-09 08:46:13 jeroen Exp $ */
2/* Copyright (c) Mark J. Kilgard, 1997. */
3
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. */
7
8#include <stdlib.h>
9
10#include "glutint.h"
11
12/* CENTRY */
13void APIENTRY
14glutKeyboardFunc(GLUTkeyboardCB keyboardFunc)
15{
16 __glutChangeWindowEventMask(KeyPressMask,
17 keyboardFunc != NULL || __glutCurrentWindow->special != NULL);
18 __glutCurrentWindow->keyboard = keyboardFunc;
19}
20
21void APIENTRY
22glutSpecialFunc(GLUTspecialCB specialFunc)
23{
24 __glutChangeWindowEventMask(KeyPressMask,
25 specialFunc != NULL || __glutCurrentWindow->keyboard != NULL);
26 __glutCurrentWindow->special = specialFunc;
27}
28
29/* ENDCENTRY */
Note: See TracBrowser for help on using the repository browser.