home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / ibm / common / ibmKeybd.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-16  |  1.7 KB  |  61 lines

  1. /*
  2.  * $XConsortium: ibmKeybd.c,v 1.2 91/07/16 13:07:10 jap Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989,1990,1991
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * License to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted,
  10.  * provided that the above copyright notice appear in all copies and that
  11.  * both that copyright notice and this permission notice appear in
  12.  * supporting documentation, and that the name of IBM not be
  13.  * used in advertising or publicity pertaining to distribution of the
  14.  * software without specific, written prior permission.
  15.  *
  16.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND 
  18.  * NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
  19.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23.  * SOFTWARE.
  24.  *
  25. */
  26.  
  27. #include "X.h"
  28. #include "input.h"
  29.  
  30. #include "OSio.h"
  31.  
  32. #include "ibmTrace.h"
  33.  
  34. extern void ibmInfoMsg() ;
  35.  
  36. DevicePtr    ibmKeybd;
  37. int        ibmBellPitch;
  38. int        ibmBellDuration;
  39. int        ibmLEDState;
  40. int        ibmKeyClick;
  41. int        ibmKeyRepeat;
  42.  
  43. int ibmUsePCKeys =    0 ;
  44. int ibmLockState =    0 ;
  45. int ibmCurLockKey =    0 ;
  46. int ibmLockEnabled =    TRUE ;
  47.  
  48. void
  49. ibmChangeKeyboardControl(pDevice,pCtrl)
  50.     DevicePtr    *pDevice;
  51.     KeybdCtrl    *pCtrl;
  52. {
  53.     TRACE(("ibmChangeKeyboardControl(0x%x,0x%x)\n",pDevice,pCtrl));
  54.     ibmKeyClick=    pCtrl->click;
  55.     ibmKeyRepeat=    pCtrl->autoRepeat;
  56.     ibmBellPitch=    pCtrl->bell_pitch;
  57.     ibmBellDuration=    pCtrl->bell_duration;
  58.     ibmLEDState=    pCtrl->leds;
  59.     return;
  60. }
  61.