Cross Reference: glut_key.c
xref: /xsrc/external/mit/MesaGLUT/dist/src/glut/glx/glut_key.c
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /xsrc/external/mit/MesaGLUT/dist/src/glut/glx/
1c041511dScube
2c041511dScube/* Copyright (c) Mark J. Kilgard, 1997. */
3c041511dScube
4c041511dScube/* This program is freely distributable without licensing fees
5c041511dScube   and is provided without guarantee or warrantee expressed or
6c041511dScube   implied. This program is -not- in the public domain. */
7c041511dScube
8c041511dScube#include <stdlib.h>
9c041511dScube
10c041511dScube#include "glutint.h"
11c041511dScube
12c041511dScube/* CENTRY */
13c041511dScubevoid GLUTAPIENTRY
14c041511dScubeglutKeyboardFunc(GLUTkeyboardCB keyboardFunc)
15c041511dScube{
16c041511dScube  __glutChangeWindowEventMask(KeyPressMask,
17c041511dScube    keyboardFunc != NULL || __glutCurrentWindow->special != NULL);
18c041511dScube  __glutCurrentWindow->keyboard = keyboardFunc;
19c041511dScube}
20c041511dScube
21c041511dScubevoid GLUTAPIENTRY
22c041511dScubeglutSpecialFunc(GLUTspecialCB specialFunc)
23c041511dScube{
24c041511dScube  __glutChangeWindowEventMask(KeyPressMask,
25c041511dScube    specialFunc != NULL || __glutCurrentWindow->keyboard != NULL);
26c041511dScube  __glutCurrentWindow->special = specialFunc;
27c041511dScube}
28c041511dScube
29c041511dScube/* ENDCENTRY */
30

Indexes created Sat Nov 29 02:09:32 GMT 2025