Penguin

Attempted to get a PSX controller to work with the gamecon.c parallel port joystick driver.

Wired up connector as stated in src/linux/Documentation/input/joystick-parport.txt:

2.3 Sony Playstation
~~~~~~~~~~~~~~~~~~~~

  The PSX controller is supported by the gamecon.c. Pinout of the PSX
controller (compatible with DirectPadPro):

  +---------+---------+---------+
9 | o  o  o | o  o  o | o  o  o | 1               parallel
   \________|_________|________/                  port pins
    |  |      |  |  |   |
    |  |      |  |  |   +-------->  Clock    ---  (4)
    |  |      |  |  +------------>  Select   ---  (3)
    |  |      |  +--------------->  Power    ---  (5-9)
    |  |      +------------------>  Ground   ---  (18-25)
    |  +------------------------->  Command  ---  (2)
    +---------------------------->  Data     ---  (one of 10,11,12,13,15)

  The driver supports these controllers:

 * Standard PSX Pad
 * NegCon PSX Pad
 * Analog PSX Pad (red mode)
 * Analog PSX Pad (green mode)
 * PSX Rumble Pad
 * PSX DDR Pad

Initially had trouble getting it working, but found out that in order to laod the gamecon driver you have to unload the lp driver and load the joydev driver, eg:

> modprobe -r lp
> modprobe joydev
> modprobe map=0,7,0,0,0,0

This tells gamecon to use the first parallel port, a PlayStation controller for the first controller and nothing for the rest (the last 4 zeroes are not really necessary).