home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntinc25.zoo / keycodes.h < prev    next >
C/C++ Source or Header  |  1992-05-15  |  2KB  |  94 lines

  1. /* Atari ST keyboard key bindings */
  2.  
  3. #ifndef _KEYCODES_H
  4. #define _KEYCODES_H
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #define N_KEYCODES    0x82    /* key scan codes go from 0 to this - 1*/
  11.  
  12. /* some noteworthy keys */
  13.  
  14. #define K_ESC        0x01
  15. #define K_RET        0x1c
  16.  
  17. /* function keys */
  18. #define F_1        0x3b
  19. #define F_2        0x3c
  20. #define F_3        0x3d
  21. #define F_4        0x3e
  22. #define F_5        0x3f
  23. #define F_6        0x40
  24. #define F_7        0x41
  25. #define F_8        0x42
  26. #define F_9        0x43
  27. #define F_10        0x44
  28. /* shifted function keys */
  29. #define SHF_1        0x54
  30. #define SHF_2        0x55
  31. #define SHF_3        0x56
  32. #define SHF_4        0x57
  33. #define SHF_5        0x58
  34. #define SHF_6        0x59
  35. #define SHF_7        0x5a
  36. #define SHF_8        0x5b
  37. #define SHF_9        0x5c
  38. #define SHF_10        0x5d
  39.  
  40. #define K_INS        0x52
  41. #define K_DEL        0x53
  42. #define K_HOME        0x47
  43. #define K_UNDO        0x61
  44. #define K_HELP        0x62
  45. #define CURS_UP        0x48
  46. #define CURS_DN        0x50
  47. #define CURS_RT        0x4d
  48. #define CURS_LF        0x4b
  49.  
  50. #define KP_MINUS    0x4a
  51. #define KP_PLUS        0x4e
  52. #define KP_LP        0x63
  53. #define KP_RP        0x64
  54. #define KP_SLASH    0x65
  55. #define KP_STAR        0x66
  56. #define KP_7        0x67
  57. #define KP_8        0x68
  58. #define KP_9        0x69
  59. #define KP_4        0x6a
  60. #define KP_5        0x6b
  61. #define KP_6        0x6c
  62. #define KP_1        0x6d
  63. #define KP_2        0x6e
  64. #define KP_3        0x6f
  65. #define KP_0        0x70
  66. #define KP_DOT        0x71
  67. #define KP_ENTER    0x72
  68.  
  69. #define ALT_1        0x78
  70. #define ALT_2        0x79
  71. #define ALT_3        0x7a
  72. #define ALT_4        0x7b
  73. #define ALT_5        0x7c
  74. #define ALT_6        0x7d
  75. #define ALT_7        0x7e
  76. #define ALT_8        0x7f
  77. #define ALT_9        0x80
  78. #define ALT_0        0x81
  79.  
  80. #ifndef _COMPILER_H
  81. #include <compiler.h>
  82. #endif
  83.  
  84. __EXTERN unsigned int console_read_byte __PROTO((int handle));
  85. __EXTERN int console_input_status __PROTO((int handle));
  86. __EXTERN void console_write_byte __PROTO((int handle, int n));
  87. __EXTERN void console_set_key __PROTO((int keycode, char *regular, char *shifted, char *alted));
  88.  
  89. #if defined(__cplusplus)
  90. }
  91. #endif
  92.  
  93. #endif /* _KEYCODES_H */
  94.