home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / AIX / aixModKeys.h < prev    next >
C/C++ Source or Header  |  1991-09-20  |  2KB  |  57 lines

  1. /*
  2.  * $Id: aixModKeys.h,v 1.1 1991/09/20 17:58:56 mtranle Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * Permission 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 AND FITNESS, IN NO EVENT SHALL
  18.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22.  * SOFTWARE.
  23.  *
  24. */
  25. /* @(#)aixModKeys.h    1.2 88/05/03 12:28:17 */
  26.  
  27. #ifndef AIXINPUT_H
  28. #define AIXINPUT_H
  29.  
  30. /* The following are defined in AIX.h */
  31.  
  32. #define AIX_MIN_KEY  0x08
  33. #define AIX_MAX_KEY (0x85 + AIX_MIN_KEY)
  34. #define AIX_GLYPHS_PER_KEY 2
  35.  
  36. /*                                        Position
  37.  *                          Base            Code
  38.  */
  39. #define Aix_Control_L    (AIX_MIN_KEY   +    0x3A)
  40. #define Aix_Shift_L      (AIX_MIN_KEY   +    0x2C)
  41. #define Aix_Shift_R      (AIX_MIN_KEY   +    0x39)
  42. #define Aix_Caps_Lock    (AIX_MIN_KEY   +    0x1E)
  43. #define Aix_Alt_L        (AIX_MIN_KEY   +    0x3C)
  44. #define Aix_Alt_R        (AIX_MIN_KEY   +    0x3E)
  45. #define Aix_Backspace    (AIX_MIN_KEY   +    0x0f)
  46. /*
  47.  * 12/27/88 (ef) -- Only the PS/2 keyboard has two control keys.
  48.  */
  49. #ifdef i386
  50. #define Aix_Control_R    (AIX_MIN_KEY    +    0x40)
  51. #endif
  52.  
  53. #define Aix_Num_Lock     (AIX_MIN_KEY   +    0x5a)
  54. #define NumLockMask     Mod5Mask
  55.  
  56. #endif AIXINPUT_H
  57.