Linux - GamesThis forum is for all discussion relating to gaming in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've compiled and installed the latest version of Snes9X onto my system (Slackware 10.1) and it works fine, except I'm having a problem mapping the buttons on my USB controller. Most of the buttons map fine (A,B,X,Y,Start), but the problem I'm having is with the L & R buttons.
The problem stems from the fact that my USB controller has analog triggers (as opposed to digital buttons) for the L & R buttons. My controller is a Mad Catz USB controller, which essentially is an XBox controller only without the memory card slot and rumble mechanism. The L & R buttons *work* (I can view their status in KDE's Control Center, and they work fine in XMAME), but I cannot figure out how to map them to the L & R buttons in Snes9X.
In XMAME, they come up as individual axis', and in the KDE Control Center, are given a numerical range from -32768 to +32768, not 'on' or 'off' like the other digital buttons.
I usually call Snes9X from the bash shell (yes, I'm strange) with the -joymap0 argument, followed by the corresponding button numbers, but since L & R in this case are treated as an axis, I'm lost as to how to invoke this, or even if it can be. Any ideas of how I might be able to do this?
Is there a menu in Snes9X where u can manully set ur buttons?
I know for znes there is I use that no problem, I use a WingMan Controller rumble, however i cannot get it to rumble, mmmm wonder if there's a pluging for it(rumble) or that has to be done thru the kernel mmmmm.
Nope, no menu with Linux Snes9X. I'm almost becoming tempted to switch over the ZSnes just to see if it'll work there. Otherwise, I might have to try and add support for this myself (the last resort). Anyone else have any ideas?
I didn't see anything in any of the documentation (that came with the source) about support for such a controller. I have, instead, installed and configured a little app called 'joy2key' to map my controller input to keyboard keys (which is how Snes9X can be played as well) and it seems to work just fine.
I'm using an X-Box contoller connected to USB, and I've had a couple of issues with the analog triggers myself. I've found that the triggers are read as axis instead of buttons (which makes sense) and some games can't use them for buttons, but I haven't had any issues with zsnes.
You may want to get a copy of jstest from the joystick package at: http://atrey.karlin.mff.cuni.cz/~vojtech/joystick/
I had problems compiling the whole package but luckily you don't need it. All you need is jstest.
When you unpack it find the file named jstest.c and you should just be able to enter:
make jstest
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.