1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: Xkeyboard.h,v 10.4 86/02/01 15:41:50 tony Rel $ */
   4: /* Copyright 1985, Massachusetts Institute of Technology */
   5: /*
   6:  * This file is useful for dealing with key events independent of any
   7:  * ascii mapping.
   8:  */
   9: 
  10: #define KC_F1   0126
  11: #define KC_F2   0127
  12: #define KC_F3   0130
  13: #define KC_F4   0131
  14: #define KC_F5   0132
  15: 
  16: #define KC_F6   0144
  17: #define KC_F7   0145
  18: #define KC_F8   0146
  19: #define KC_F9   0147
  20: #define KC_F10  0150
  21: 
  22: #define KC_F11  0161
  23: #define KC_ESC  0161  /* escape: same as F11 */
  24: 
  25: #define KC_F12  0162
  26: #define KC_BS   0162  /* backspace: same as F12 */
  27: 
  28: #define KC_F13  0163
  29: #define KC_LF   0163  /* line feed: same as F13 */
  30: #define KC_F14  0164
  31: 
  32: #define KC_F15  0174
  33: #define KC_F16  0175
  34: 
  35: #define KC_F17  0200
  36: #define KC_F18  0201
  37: #define KC_F19  0202
  38: #define KC_F20  0203
  39: 
  40: #define KC_E1   0212
  41: #define KC_E2   0213
  42: #define KC_E3   0214
  43: #define KC_E4   0215
  44: #define KC_E5   0216
  45: #define KC_E6   0217
  46: 
  47: #define KC_KEYPAD_0 0222
  48: #define KC_KEYPAD_PERIOD    0224
  49: #define KC_ENTER    0225
  50: #define KC_KEYPAD_1 0226
  51: #define KC_KEYPAD_2 0227
  52: #define KC_KEYPAD_3 0230
  53: #define KC_KEYPAD_4 0231
  54: #define KC_KEYPAD_5 0232
  55: #define KC_KEYPAD_6 0233
  56: #define KC_KEYPAD_COMMA     0234
  57: #define KC_KEYPAD_7 0235
  58: #define KC_KEYPAD_8 0236
  59: #define KC_KEYPAD_9 0237
  60: #define KC_KEYPAD_MINUS     0240
  61: 
  62: #define KC_PF1  0241
  63: #define KC_PF2  0242
  64: #define KC_PF3  0243
  65: #define KC_PF4  0244
  66: 
  67: #define KC_SHIFT 0256
  68: #define KC_CTRL  0257
  69: #define KC_LOCK  0260
  70: #define KC_SYMBOL 0261
  71: #define KC_META   0261  /* same as KC_SYMBOL */
  72: 
  73: #define KC_CURSOR_LEFT  0247
  74: #define KC_CURSOR_RIGHT 0250
  75: #define KC_CURSOR_DOWN  0251
  76: #define KC_CURSOR_UP    0252
  77: 
  78: #define IsShiftKey(code) \
  79:     (((unsigned)code)>=KC_SHIFT && ((unsigned)code)<=KC_META)
  80: 
  81: #define IsCursorKey(code) \
  82:     (((unsigned)code)>=KC_CURSOR_LEFT && ((unsigned)code)<=KC_CURSOR_UP)
  83: 
  84: #define IsKeypadKey(code) \
  85:     (((unsigned)code)>=KC_KEYPAD_0 && ((unsigned)code)<=KC_KEYPAD_MINUS)
  86: 
  87: #define IsFunctionKey(code) \
  88:     (((unsigned)code)>=KC_F1 && ((unsigned)code)<=KC_E6)
  89: 
  90: #define IsPFKey(code) \
  91:     (((unsigned)code)>=KC_PF1 && ((unsigned)code)<=KC_PF4)
  92: 
  93: #define IsTypewriterKey(code) \
  94:     (((unsigned)code)>=0274 && ((unsigned)code)<=0373)

Defined macros

IsCursorKey defined in line 81; used 1 times
IsFunctionKey defined in line 87; used 1 times
IsKeypadKey defined in line 84; used 1 times
IsPFKey defined in line 90; used 1 times
IsShiftKey defined in line 78; never used
IsTypewriterKey defined in line 93; used 1 times
KC_BS defined in line 26; used 1 times
KC_CTRL defined in line 68; used 1 times
KC_CURSOR_DOWN defined in line 75; never used
KC_CURSOR_LEFT defined in line 73; used 3 times
KC_CURSOR_RIGHT defined in line 74; never used
KC_CURSOR_UP defined in line 76; used 1 times
  • in line 82
KC_E1 defined in line 40; never used
KC_E2 defined in line 41; never used
KC_E3 defined in line 42; never used
KC_E4 defined in line 43; never used
KC_E5 defined in line 44; never used
KC_E6 defined in line 45; used 1 times
  • in line 88
KC_ENTER defined in line 49; never used
KC_ESC defined in line 23; used 1 times
KC_F1 defined in line 10; used 1 times
  • in line 88
KC_F10 defined in line 20; never used
KC_F11 defined in line 22; never used
KC_F12 defined in line 25; never used
KC_F13 defined in line 28; never used
KC_F14 defined in line 30; never used
KC_F15 defined in line 32; never used
KC_F16 defined in line 33; never used
KC_F17 defined in line 35; never used
KC_F18 defined in line 36; never used
KC_F19 defined in line 37; never used
KC_F2 defined in line 11; used 1 times
KC_F20 defined in line 38; never used
KC_F3 defined in line 12; never used
KC_F4 defined in line 13; never used
KC_F5 defined in line 14; never used
KC_F6 defined in line 16; never used
KC_F7 defined in line 17; never used
KC_F8 defined in line 18; never used
KC_F9 defined in line 19; never used
KC_KEYPAD_0 defined in line 47; used 3 times
KC_KEYPAD_1 defined in line 50; never used
KC_KEYPAD_2 defined in line 51; never used
KC_KEYPAD_3 defined in line 52; never used
KC_KEYPAD_4 defined in line 53; never used
KC_KEYPAD_5 defined in line 54; never used
KC_KEYPAD_6 defined in line 55; never used
KC_KEYPAD_7 defined in line 57; never used
KC_KEYPAD_8 defined in line 58; never used
KC_KEYPAD_9 defined in line 59; never used
KC_KEYPAD_COMMA defined in line 56; never used
KC_KEYPAD_MINUS defined in line 60; used 1 times
  • in line 85
KC_KEYPAD_PERIOD defined in line 48; never used
KC_LF defined in line 29; used 1 times
KC_LOCK defined in line 69; used 1 times
KC_META defined in line 71; used 2 times
KC_PF1 defined in line 62; used 2 times
KC_PF2 defined in line 63; never used
KC_PF3 defined in line 64; never used
KC_PF4 defined in line 65; used 1 times
  • in line 91
KC_SHIFT defined in line 67; used 2 times
KC_SYMBOL defined in line 70; never used

Usage of this include

Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1574
Valid CSS Valid XHTML 1.0 Strict