Linux joysticks...

BlitzMax Forums/BlitzMax Programming/Linux joysticks...

jkrankie(Posted 2009) [#1]
Does it actually work? I never had any success getting joysticks to work on Linux. Basically i'm looking to release a game on Linux but i'm not really prepared to bastardize the experience some people.

Cheers
Charlie


jkrankie(Posted 2009) [#2]
No one's got them working then? Or does no one use Linux?

Cheers
Charlie


Ginger Tea(Posted 2009) [#3]
last time a thread about joypads came up the given consensus of coders was "why not use wsad and mouse?" where as i the end user might want to use a joypad and not be able to.

as for linux no idea sorry


jkrankie(Posted 2009) [#4]
Well yes, sure. Obviously joypads are just an option for the game, but players like to be able to use them.

Cheers
Charlie


Perturbatio(Posted 2009) [#5]
Well, I just installed a logitech rumblepad 2 without problems on ubuntu 8.10, I installed the jscalibrator and joystick packages and ran a game that uses joypad/stick and it works fine.


jkrankie(Posted 2009) [#6]
So just those two things are necessary for them to work then? If that's the case then great :)

Cheers
Charlie


Perturbatio(Posted 2009) [#7]
I dunno about those being all that's needed, but that's all *I* needed to install, I suspect there are some dependencies as well.


theHand(Posted 2009) [#8]
Yes indeed! I have had a wonderful time playing The Ooze (Genesis) and Earthbound (SNES) on emulators on Linux (both of which I own the physical cartridges for).
Plug one in, go to the command line, type in xev (and then hit enter), give the little box focus, and try out a controller!
http://www.manpagez.com/man/1/xev/

EDIT: This (see above) assumes that joysticks are automatically recognized a/o configured when you plug them in (mine was). Even if not, you can still set them up, but you have to wade through some mud (figuratively) and set up a device configuration file.
Resource links (sorted from "amount of mud you will have to wade through", top = easiest = most common):
http://forum.nginx.org/read.php?26,17500
http://www.freelink.cx/joystick.html
http://forums.x-plane.org/index.php?showtopic=29225
http://forum.nevercorner.net/viewtopic.php?id=1946