This patch is meant to simplify the programming of the parallel port 4-player
adapter, by mapping it to port 2 and 3 of LowLevel.library that are
normally unused.
It patches the ReadJoyPort() and SetJoyPortAttrsA() functions. The latter is
simply a wrapper around the original function that always returns success for
ports 2 and 3.
Installation:
Copy "ll4player" into the C: drawer, and add the following line to your
Startup-Sequence or User-Startup:
C:Run >NIL: C:ll4player
The patch takes control of the parallel port, so yo need to remove it before
using any other parallel port device (printer, sampler, etc.).
To test the patch, you can use the included "llporttest" utility. It simply
prints the bitfield for ports 0-3 and interprets them.
The source code for both programs is included, which can be compiled with VBCC
or GCC.
|