Linux joysticks and gamepads

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Linux joysticks and gamepads

Post by mcarans » Tue Jan 11, 2011 7:18 pm

I have updated the section: http://wiki.alioth.net/index.php/Linux_ ... d_Gamepads which describes how to configure controllers under Linux for use in Oolite.

The explanation covers an XBox 360 controller, but the author of xboxdrv has extended it to also work with non-XBox controllers, so if anyone tries this and gets it to work, please expand the wiki page. (xboxdrv author wrote: support for reading from evdev, this allows the use of regular PC joysticks or the Playstation 3 controllers with xboxdrv, useful if you need configurability or joy2key-like functionality, but don't have a Xbox360 gamepad.)

User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 960
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Re: Linux joysticks and gamepads

Post by Getafix » Wed Jan 12, 2011 9:35 am

I've slightly changed steps 6 and 7.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]

mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Re: Linux joysticks and gamepads

Post by mcarans » Thu Jan 13, 2011 2:30 pm

Getafix wrote:I've slightly changed steps 6 and 7.
Ok cool. Thanks very much

mcarans
---- E L I T E ----
---- E L I T E ----
Posts: 320
Joined: Sun Jun 20, 2010 6:00 pm

Re: Linux joysticks and gamepads

Post by mcarans » Sat Feb 12, 2011 9:57 am

I've released a new version of runxboxdrv available here: http://www.box.net/shared/koxvusxtap (same link as in wiki)

Gradually the functions of runxboxdrv are being assimilated into xboxdrv so after the config file facility was absorbed, the latest one to go is that the game can be launched directly from xboxdrv massively simplifying runxboxdrv as it no longer has to deal with shutdown of separate processes and hence no longer need asynchronous Python processes. I've asked the author of xboxdrv to consider putting the few remaining functions into xboxdrv. These functions are:

1. rmmod xpad
2. modprobe uinput
3. modprobe joydev
4. Change access rights to /dev/input/uinput

Post Reply