Skip to contentSkip to conversation

improved PSX support in input/joystick/gamecon.c

PATCH New Peter Nelson 1 participant 1 message Jun 12, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 improved PSX support in input/joystick/gamecon.c

I posted this patch a while ago for 2.6.2 and have gotten some good user feedback, but none so far from Vojtech Pavlik, the joystick maintainer. I've updated the patch for 2.6.6 and am interested any input. Here's a summary of what it does again:

* Adds support for more than one controller. Previously more than one controller was initialized and the docs said they worked, but only one was actually read.
* Removes unnecessary detection on initialization. This allows the module to be initialized without controllers plugged in (hot swapping controllers works). This removes a warning if the user has an unrecognized controller plugged in, but the only unrecognized controller I have been able to find information about online is the PSX mouse, which I've never actually seen.
* Adds a psx_ddr option to have direction presses register as buttons instead of axes. Allows the module to be used for Dance Dance Revolution emulators like Stepmania.
* Adds psx_* to documentation.

As before, I've tested this with a DDR pay, a dualshock, and a clone digital controller. I also have a bit of a writeup on my website:
http://rufus.hackish.org/wiki/gamecon

-Peter Nelson

Documentation/input/joystick-parport.txt +10 -2
@@ -453,13 +453,21 @@ uses the following kernel/module command
 	  6  | N64 pad
 	  7  | Sony PSX controller
 
-  The exact type of the PSX controller type is autoprobed, so you must have
-your controller plugged in before initializing.
+  The exact type of the PSX controller type is autoprobed when used so 
+hot swapping should work (but is not recomended).
 
   Should you want to use more than one of parallel ports at once, you can use
 gamecon.map2 and gamecon.map3 as additional command line parameters for two
 more parallel ports.
 
+  There are two options specific to PSX driver portion.  
+gamecon.psx_delay sets the command delay when talking to the 
+controllers.  The default of 25 should work but you can try lowering it for 
+better performace.  If your pads don't respond try raising it untill 
+they work.  gamecon.psx_ddr allows the driver to be for Dance Dance 
+Revolution or similar games.  Arrow keys are registered as key presses 
+instead of on axes.
+
 3.2 db9.c
 ~~~~~~~~~
   Apart from making an interface, there is nothing difficult on using the
drivers/input/joystick/gamecon.c +109 -97

288 lines not on this page · raw message