Short:        Emulate CD32 joypad using joystick & kb
Author:       jffabre@club-internet.fr (Jean-François Fabre)
Uploader:     jffabre club-internet fr (Jean-François Fabre)
Type:         driver/input
Version:      0.1
Architecture: m68k-amigaos
Distribution: Aminet

FakePad is © 1999 Jean-François Fabre

What you need:

- A OS 3.x Amiga
- CD32 games that you cannot use on your amiga because you haven't got a CD32 joypad
  and which use lowlevel.library
- lowlevel.library (it's on most CD32 CDs)
- A joystick
- A keyboard with function keys :)
- warnifpressed (optionnal)


This utility allows the CD32 programs using lowlevel.library to read the
joypad to work without the joypad, even when the game absolutely needs 
a joypad to run (e.g. Robocod CD32).
Only port 1 (gameport) is converted to joypad, port 0 remains unchanged
(means that the original port read is still active in this case,
mouse or joystick will be properly detected)

Even if I don't know games demanding 2 joypads, it may be necessary
to change the port 0 behaviour. I need feedback so I can improve the program

To run the patch, simply click on the fakepad icon or run it from cli.
To remove the patch, simple click on the killfakepad icon or run it from cli.

It is safe to run the patch more than once (same thing for killfakepad)

Use the checkbtns script to test the button emulation (you'll need the
warnifpressed utility (not included for copyright reasons))

Key/Joystick mapping:

Directions: joystick
Fire (red): joystick fire button
Blue: joystick 2nd button (if any) or F1 key
Green: F2 key
Yellow: F3 key
Play: F4 key
Left ear: F5 key
Right ear: F6 key

Example of CD32 games using lowlevel.library (and to which this patch may be applied):

- D-Generation
- Robocod
- Super Street Fighter II Turbo
- Gunship 2000
- Worms

Some games NOT using lowlevel.library:

- Sensible Soccer
- James Pond 3
- Oscar
- Universe

Note that JST fixes exist for some CD32 games, and the fix includes CD32
pad emulation

The source code is included. You can check how lame my coding is.
You'll need gnu make and phxass to generate the exes.

Thanks go to:

- Kenneth C. Nilsen/Digital Surface for the startup code
- Angus Manwaring for indirectly giving me the idea to do this program
