[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

The potgo resource is used to get control of the hardware POTGO register
connected to the proportional I/O pins on the game controller ports. There
are two registers, POTGO (write-only) and POTINP (read-only). These pins
could also be used for digital I/O.

The potgo resource provides three functions for working with the POTGO
hardware.

                       Potgo Resource Functions
                       ------------------------
     allocpotbits()    allocate bits in the potgo register.

     freepotbits()     free previously allocated bits in the potgo
                       register.

     writepotgo()      set and clear bits in the potgo register.
                       The bits must have been allocated before
                       calling this function.

The example program shown below demonstrates how to use the ptogo resource
to track mouse button presses on port 1.

     read_potinp.c 

Additional programming information on the potgo resource can be found in
the include files and the Autodocs for the potgo resource.

                         Potgo Resource Information
                      ---------------------------------
                      INCLUDES        resources/potgo.h
                                      resources/potgo.i
                                      utility/hooks.h
                                      utility/hooks.i

                      AUTODOCS        potgo.doc