~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/glut/os2/glut_key.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
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 */
13
 
void GLUTAPIENTRY
14
 
glutKeyboardFunc(GLUTkeyboardCB keyboardFunc)
15
 
{
16
 
  __glutChangeWindowEventMask(KeyPressMask,
17
 
    keyboardFunc != NULL || __glutCurrentWindow->special != NULL);
18
 
  __glutCurrentWindow->keyboard = keyboardFunc;
19
 
}
20
 
 
21
 
void GLUTAPIENTRY
22
 
glutSpecialFunc(GLUTspecialCB specialFunc)
23
 
{
24
 
  __glutChangeWindowEventMask(KeyPressMask,
25
 
    specialFunc != NULL || __glutCurrentWindow->keyboard != NULL);
26
 
  __glutCurrentWindow->special = specialFunc;
27
 
}
28
 
 
29
 
/* ENDCENTRY */