I did get my psx dualshock controller to work, it was quite easy.
edit /etc/modules:
sudo nano /etc/modules
Place a # before lp.
Add a new line in the bottom:
gamecon map=0,7
Where 0 is parallel port 0 and 7 is for a psx controller.
Then exit and save by pressing ctrl-x.
This is from gamecon.c:
#define GC_SNES 1
#define GC_NES 2
#define GC_NES4 3
#define GC_MULTI 4
#define GC_MULTI2 5
#define GC_N64 6
#define GC_PSX 7
#define GC_DDR 8
#define GC_SNESMOUSE 9
This is my /etc/modules file:
Code:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
#lp
psmouse
sbp2
sr_mod
gamecon map=0,7
For a genesis controller instead of using gamecon you should use db9 like this:
db9 dev=0,3
Where 0 is parallel port 0 and 3 is a genesis controller.
This is from db9.c:
#define DB9_MULTI_STICK 0x01
#define DB9_MULTI2_STICK 0x02
#define DB9_GENESIS_PAD 0x03
#define DB9_GENESIS5_PAD 0x05
#define DB9_GENESIS6_PAD 0x06
#define DB9_SATURN_PAD 0x07
#define DB9_MULTI_0802 0x08
#define DB9_MULTI_0802_2 0x09
#define DB9_CD32_PAD 0x0A
#define DB9_SATURN_DPP 0x0B
#define DB9_SATURN_DPP_2 0x0C
#define DB9_MAX_PAD 0x0D
Now you have to reboot, or use some magical command I don't know about
When everything works you should have a /dev/input/js? device where ? is a number, since this is my only joystick I have a js0 device.
This is what my /dev/input dir looks like:
Code:
root@bob:/dev/input# ls
event0 event1 event2 event3 js0 mice mouse0 ts0
You can test the joystick with "sudo cat /dev/input/js0" and press some buttons on the joystick, you should get some strange characters when you press the buttons, then you know it works.
Bookmarks