home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / gchsrc31 / include / scancode.h < prev    next >
C/C++ Source or Header  |  1992-04-27  |  3KB  |  117 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is part of the Atari Machine Specific Library,
  4. //  and is Copyright 1992 by Warwick W. Allison.
  5. //
  6. //  You are free to copy and modify these sources, provided you acknoledge
  7. //  the origin by retaining this notice, and adhere to the conditions
  8. //  described in the file COPYING.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _scancode_h
  13. #define _scancode_h
  14. //
  15. //  Scancodes of all Atari keys.
  16. //
  17.  
  18. #include <osbind.h>
  19.  
  20. inline int KeyPressed() { return Cconis(); }
  21. inline int Key() { return Cnecin()>>16; }
  22. inline int AsciiKey() { return Cnecin()&255; }
  23.  
  24. #define KEY_ALT
  25. #define KEY_F1        0x3b
  26. #define KEY_F2        0x3c
  27. #define KEY_F3        0x3d
  28. #define KEY_F4        0x3e
  29. #define KEY_F5        0x3f
  30. #define KEY_F6        0x40
  31. #define KEY_F7        0x41
  32. #define KEY_F8        0x42
  33. #define KEY_F9        0x43
  34. #define KEY_F10        0x44
  35. #define KEY_ESC        0x01
  36. #define KEY_1        0x02
  37. #define KEY_2        0x03
  38. #define KEY_3        0x04
  39. #define KEY_4        0x05
  40. #define KEY_5        0x06
  41. #define KEY_6        0x07
  42. #define KEY_7        0x08
  43. #define KEY_8        0x09
  44. #define KEY_9        0x0a
  45. #define KEY_0        0x0b
  46. #define KEY_MINUS    0x0c
  47. #define KEY_EQUAL    0x0d
  48. #define KEY_GRAVE    0x29
  49. #define KEY_BS        0x0e
  50. #define KEY_HELP    0x62
  51. #define KEY_UNDO    0x61
  52. #define KEY_KPOPEN    0x63
  53. #define KEY_KPCLOSE    0x64
  54. #define KEY_KPSLASH    0x65
  55. #define KEY_KPSTAR    0x66
  56. #define KEY_TAB        0x0f
  57. #define KEY_Q        0x10
  58. #define KEY_W        0x11
  59. #define KEY_E        0x12
  60. #define KEY_R        0x13
  61. #define KEY_T        0x14
  62. #define KEY_Y        0x15
  63. #define KEY_U        0x16
  64. #define KEY_I        0x17
  65. #define KEY_O        0x18
  66. #define KEY_P        0x19
  67. #define KEY_OPEN    0x1a
  68. #define KEY_CLOSE    0x1b
  69. #define KEY_RETURN    0x1c
  70. #define KEY_DELETE    0x53
  71. #define KEY_INSERT    0x52
  72. #define KEY_UP        0x48
  73. #define KEY_HOME    0x47
  74. #define KEY_KP7        0x67
  75. #define KEY_KP8        0x68
  76. #define KEY_KP9        0x69
  77. #define KEY_KPMINUS    0x4a
  78. #define KEY_A        0x1e
  79. #define KEY_S        0x1f
  80. #define KEY_D        0x20
  81. #define KEY_F        0x21
  82. #define KEY_G        0x22
  83. #define KEY_H        0x23
  84. #define KEY_J        0x24
  85. #define KEY_K        0x25
  86. #define KEY_L        0x26
  87. #define KEY_SEMI    0x27
  88. #define KEY_QUOTE    0x28
  89. #define KEY_HASH    0x2b
  90. #define KEY_LEFT    0x4b
  91. #define KEY_DOWN    0x50
  92. #define KEY_RIGHT    0x4d
  93. #define KEY_KP4        0x6a
  94. #define KEY_KP5        0x6b
  95. #define KEY_KP6        0x6c
  96. #define KEY_KPPLUS    0x4e
  97. #define KEY_SLOSH    0x60
  98. #define KEY_Z        0x2c
  99. #define KEY_X        0x2d
  100. #define KEY_C        0x2e
  101. #define KEY_V        0x2f
  102. #define KEY_B        0x30
  103. #define KEY_N        0x31
  104. #define KEY_M        0x32
  105. #define KEY_COMMA    0x33
  106. #define KEY_DOT        0x34
  107. #define KEY_SLASH    0x35
  108. #define KEY_KP1        0x6d
  109. #define KEY_KP2        0x6e
  110. #define KEY_KP3        0x6f
  111. #define KEY_ENTER    0x72
  112. #define KEY_SPACE    0x39
  113. #define KEY_KP0        0x70
  114. #define KEY_KPDOT    0x71
  115.  
  116. #endif
  117.