~ubuntu-branches/ubuntu/raring/mesa/raring-proposed

« back to all changes in this revision

Viewing changes to src/glut/glx/glut_keyctrl.c

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2011-06-19 21:26:00 UTC
  • mfrom: (1.6.1 upstream) (3.3.18 sid)
  • mto: (3.3.20 sid)
  • mto: This revision was merged to the branch mainline in revision 145.
  • Revision ID: james.westby@ubuntu.com-20110619212600-rleaapdmnbtstekb
Tags: 7.11~0-2
Thank you sbuild for giving a green light when that's not actually the
case. Fix missing Pre-Depends for the libegl1-mesa-drivers package
(multiarch-support).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* Copyright (c) Mark J. Kilgard, 1996, 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 "glutint.h"
 
9
 
 
10
/* CENTRY */
 
11
void GLUTAPIENTRY
 
12
glutIgnoreKeyRepeat(int ignore)
 
13
{
 
14
  __glutCurrentWindow->ignoreKeyRepeat = ignore;
 
15
}
 
16
 
 
17
void GLUTAPIENTRY
 
18
glutSetKeyRepeat(int repeatMode)
 
19
{
 
20
#if !defined(_WIN32)
 
21
  XKeyboardControl values;
 
22
 
 
23
  /* GLUT's repeatMode #define's match the Xlib API values. */
 
24
  values.auto_repeat_mode = repeatMode;
 
25
  XChangeKeyboardControl(__glutDisplay, KBAutoRepeatMode, &values);
 
26
#endif
 
27
}
 
28
 
 
29
/* ENDCENTRY */