Added a simple README for runxboxdrv

This commit is contained in:
Ingo Ruhnke 2010-08-05 13:10:34 +02:00
parent 31d44cc705
commit 41982531a6

49
runxboxdrv/README Normal file
View file

@ -0,0 +1,49 @@
[[ runxboxdrv ]]
================
runxboxdrv was written by Mike Rans <rans@email.com>, some info can be
found at:
,--[ http://ubuntuforums.org/showthread.php?p=9676862#post9676862 ]
|
| I have completed a wrapper around xboxdrv called runxboxdrv. It is run using:
| runxboxdrv --cfg=/home/mike/oolite.cfg /usr/bin/oolite
|
| It handles:
| 1. Shutting cleanly any existing xboxdrv process
| 2. Checking and unloading if necessary xpad.
| 3. Checking and loading if necesary uinput and joydev
| 4. Checking and changing if necessary uinput device permissions
| 5. Loading a configuration file and converting its contents to xboxdrv
| command line arguments
| 6. Running xboxdrv with said arguments
| 7. Running game once xboxdrv outputs "Press CTRL-C to quit"
| 8. Shutting cleanly xboxdrv after user shuts down game
|
| Oolite.cfg (the gamepad configuration) looks like this:
| [options]
| silent=true
| trigger-as-button=true
| dpad-as-button=true
| led=0
|
| [axis-sensitivity]
| X1=-1.0
| X2=-1.0
| Y2=-1.0
|
| [axismap]
| Y2=-Y2
|
| [ui-axismap]
| Y1=XK_1:XK_2
|
| [ui-buttonmap]
| # speed
| du=XK_Up
| dd=XK_Down
| ...
`--
# EOF #