home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / misc / gms_dev.lha / GMS / Includes / games / misc.i < prev    next >
Encoding:
Text File  |  1997-02-09  |  2.5 KB  |  108 lines

  1.     IFND GMS_MISC_I
  2. GMS_MISC_I  SET  1
  3.  
  4. **
  5. **    $VER: misc.i 0.5 (09.02.97)
  6. **
  7. **    (C) Copyright 1996-1997 DreamWorld Productions.
  8. **        All Rights Reserved
  9. **
  10.  
  11.  
  12. * --- Entry stucture for GetObjectList().
  13.  
  14.     STRUCTURE    ObjectEntry,0
  15.     APTR    OE_Name    ;Pointer to the name, may be NULL.
  16.     APTR    OE_Object    ;Object is returned here.
  17.     LABEL    OE_SIZEOF
  18.  
  19. ;Private structure for object headers.
  20.  
  21.     STRUCTURE    DataHeader,0    ;Data header for each object.
  22.     ULONG    DH_Type    ;Type of object, eg STRC, CODE, DATA.
  23.     ULONG    DH_Next    ;Offset towards next object.
  24.     LABEL    DH_Name    ;The name of the object.
  25.  
  26. * --- Choose one of these when calling Set_Interrupt().
  27.  
  28. INTB_INTEN =    14             ;Master interrupt (enable only )
  29. INTB_EXTER =    13             ;External interrupt
  30. INTB_DSKSYNC =    12             ;Disk re-SYNChronized
  31. INTB_RBF =    11             ;serial port Receive Buffer Full
  32. INTB_AUD3 =    10             ;Audio channel 3 block finished
  33. INTB_AUD2 =    9              ;Audio channel 2 block finished
  34. INTB_AUD1 =    8              ;Audio channel 1 block finished
  35. INTB_AUD0 =    7              ;Audio channel 0 block finished
  36. INTB_BLIT =    6              ;Blitter finished
  37. INTB_VERTB =    5              ;start of Vertical Blank
  38. INTB_COPER =    4              ;Coprocessor
  39. INTB_PORTS =    3              ;I/O Ports and timers
  40. INTB_SOFTINT =    2              ;software interrupt rest
  41. INTB_DSKBLK =    1              ;Disk Block done
  42. INTB_TBE =    0              ;serial port Transmit Buffer Empty
  43.  
  44. * --- The KeyPress structure, used by Read_Key().
  45.  
  46.     STRUCTURE    KP,00
  47.     UWORD    KP_ID          ;GMS Identification - ignore.
  48.     UBYTE    KP_Key1        ;Newest Keypress
  49.     UBYTE    KP_Key2        ;...
  50.     UBYTE    KP_Key3        ;...
  51.     UBYTE    KP_Key4        ;Oldest Keypress
  52.     LABEL    KP_SIZEOF
  53.  
  54. * --- Special Keypresses that can be returned from Read_Key().  All other
  55. *     keys can be considered to be in ASCII format. 
  56.  
  57. K_SCS =        $80                   ;ScreenSwitch (LEFTAMIGA + M)
  58. K_DEL    =    $81
  59. K_HELP    =    $82
  60.  
  61. K_LSHIFT =    $83
  62. K_RSHIFT =    $84
  63. K_CAPS =    $85
  64. K_CTRL =    $86
  65. K_LALT =    $87
  66. K_RALT =    $88
  67. K_LAMIGA =    $89
  68. K_RAMIGA =    $8a
  69.  
  70. K_F1    =    $8b
  71. K_F2    =    $8c
  72. K_F3    =    $8d
  73. K_F4    =    $8e
  74. K_F5    =    $8f
  75. K_F6    =    $90
  76. K_F7    =    $91
  77. K_F8    =    $92
  78. K_F9    =    $93
  79. K_F10    =    $94
  80. K_F11    =    $95
  81. K_F12    =    $96
  82. K_F13    =    $97
  83. K_F14    =    $98
  84. K_F15    =    $99
  85. K_F16    =    $9a
  86. K_F17    =    $9b
  87. K_F18    =    $9c
  88. K_F19    =    $9d
  89. K_F20    =    $9e
  90.  
  91. C_UP    =    $9f
  92. C_DOWN    =    $a0
  93. C_RIGHT    =    $a1
  94. C_LEFT    =    $a2
  95.  
  96. K_SRIGHT =    $a3                   ;Special key on right.
  97. K_SLEFT =    $a4                   ;Special key on left.
  98.  
  99. * --- Special keys that are recognised under ASCII (here for convenience).
  100.  
  101. K_BAKSPC =    08
  102. K_TAB    =    09
  103. K_ENTER =    10
  104. K_RETURN =    10
  105. K_ESC    =    $1b
  106.  
  107.     ENDC    ;GMS_MISC_I
  108.