Penguin
Note: You are viewing an old revision of this page. View the current version.

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 uload the lp driver and load the joydev driver eg:

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

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