home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / diags / gport101.zip / GAMDEMO.DOC < prev    next >
Text File  |  1991-08-31  |  5KB  |  111 lines

  1.  
  2.  
  3.         Gamdemo - Game Port Demo
  4.  
  5.  
  6.  
  7.         Gamdemo demonstrates the performance of the Gport game port
  8.         library and BIOS game port support (INT 15/84). It shows the
  9.         current joystick position(s) and button status. In addition,
  10.         some of the function keys access some of the calibration and
  11.         centering features. The function keys are defined as follows:
  12.  
  13.  
  14.  
  15.         F1 - Calibrate the X axis on joystick A.
  16.         F3 - Calibrate the X axis on joystick B.
  17.  
  18.              To calibrate the X axis on a joystick,  hold the joystick
  19.              all the way to the right and press F1 (for joystick A) or
  20.              F3 (for joystick B). Then hold the joystick all the way to
  21.              the left and press F1/F3. Gport will now use this new
  22.              information to more accurately calibrate the joystick's X
  23.              axis.
  24.  
  25.  
  26.         F2 - Calibrate the Y axis on joystick A.
  27.         F4 - Calibrate the Y axis on joystick B.
  28.  
  29.              To calibrate the Y axis on a joystick,  hold the joystick
  30.              all the way up and press F2 (for joystick A) or F4. (for
  31.              joystick B)Then hold the joystick all the way down and press
  32.              F2/F4. Gport will now use this new information to more
  33.              accurately  calibrate the joystick's Y axis.
  34.  
  35.  
  36.         F5 - Toggle centering mode.
  37.  
  38.              There are two centering modes offered in Gport. The
  39.              first, and the default, is REAL mode. In real mode Gport
  40.              will consider the location of where the joystick comes
  41.              to rest to be center. The second centering mode is MEAN
  42.              mode. In MEAN mode Gport considers the mean between the
  43.              two extremes of the joystick axes, acquired from the
  44.              calibration (F1 to F4), to be center. Note that until the
  45.              joystick is  calibrated, there is little difference between
  46.              the two modes.
  47.  
  48.  
  49.         F6 - Gport/BIOS toggle
  50.  
  51.              This option allows you to compare the Gport functions to
  52.              BIOS joystick support.  Notice in particular that Gport
  53.              is much faster resulting in smoother transitions and
  54.              higher resolution.  NOTE: PC, PCjr and PC XT with BIOS
  55.              dated before 8 Nov 82 do not have BIOS joystick support.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                         1
  62.  
  63.  
  64.  
  65.         F7 - Reinitialize
  66.  
  67.              This option as far as Gport is concerned is essentially
  68.              the same as terminating the program and restarting it.
  69.              All calibration data is deleted and the joystick is
  70.              reinitialized. You may want to exercise this option if,
  71.              for instance, the joystick was not at rest when the
  72.              program was initially invoked or if you had only one
  73.              joystick and wanted to switch from joystick A to B.
  74.  
  75.  
  76.  
  77.         The source code for Gamdemo is provided for your inspection.
  78.         It is, however, compiled with function that are exclusive to
  79.         the Borland/Turbo C graphics library. If you have a similar
  80.         graphics library, you could replace the Borland graphics
  81.         library functions. The functions are as follows:
  82.  
  83.  
  84.             bar               - draws a filled bar
  85.             circle            - draws circle
  86.             cleardevice       - clears the graphics screen
  87.             closegraph        - closes the graphics mode
  88.             detectgraph       - detects the graphics driver
  89.             fillellipse       - draws and fills an ellipse
  90.             getcolor          - gets the current drawing color
  91.             getfillsettings   - gets the current fill settings
  92.             getimage          - gets a stored image
  93.             getmaxx           - gets the max number of pixels in x
  94.             getmaxy           - gets the max number of pixels in x
  95.             imagesize         - determines an image's storage size
  96.             initgraph         - initializes graphics mode
  97.             line              - draws a line
  98.             linerel           - draws a relative line
  99.             moveto            - move to
  100.             outtextxy         - puts text at x,y
  101.             putimage          - puts an image into storage
  102.             registerbgidriver - registers a linked graphics driver
  103.             registerbgifont   - registers a linked font
  104.             setbkcolor        - sets the background color
  105.             setcolor          - sets the drawing color
  106.             setfillstyle      - sets the fill style
  107.             settextstyle      - sets the text style
  108.             textheight        - determines the hight of a text string
  109.             textwidth         - determines the width of a text string
  110.  
  111.