home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / cd32 / cd32_support / tools / tools.doc < prev    next >
Text File  |  1993-10-18  |  1KB  |  45 lines

  1.  
  2. (source code for many or all of these provided in examples directory)
  3.  
  4.  
  5. joycheck - utility for testing game controllers
  6.  
  7.  
  8. warnifpressed - returns a non-zero WARN value if the specified
  9.            game controller or joystick keys/directions are being
  10.            pressed.  Uses lowlevel.library.  Could be useful
  11.            in a CD32 startup-sequence or script to branch based
  12.            on the button(s) a user is holding down.  Defaults
  13.            to port 1 (the normal game controller port)
  14.  
  15.     Usage: warnifpressed button [button button...] [PORT0]
  16.  
  17.     Acceptable button names:
  18.     RED(LMB) BLUE(RMB) GREEN YELLOW FORWARD(R_EAR) REVERSE(L_EAR) PLAY
  19.  
  20.         Example:
  21.  
  22.     warnifpressed RED GREEN
  23.     if warn    ; user is holding both RED and GREEN gamecontroller buttons
  24.       ; do something here
  25.     else
  26.       ; do something else
  27.     endif
  28.  
  29.  
  30. warnifnotpal - returns a non-zero WARN value if a system is not a
  31.     PAL system.  Could be useful for branching in a CD32
  32.     startup-sequence or other script.
  33.  
  34.     warnifnotpal
  35.     if warn ; not a PAL system
  36.       ; maybe start NTSC version or change some assignments
  37.     else    ; is a PAL system
  38.       ; maybe start PAL version or change some assignments
  39.     endif
  40.  
  41. MyGame - program with icon which calls s/cd-startup, suggested
  42.     for use when placing an icon on your CD if your title
  43.     is multitasking friendly and can be run from an icon.
  44.     see notes and CD_SCSI for more info.
  45.