LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 07-11-2005, 12:58 PM   #1
skubik
Member
 
Registered: May 2003
Location: A dark corner in Canada
Distribution: Slackware64 15.0/current
Posts: 152

Rep: Reputation: 21
Snes9x w/ analog L & R triggers?


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?

Thanks!

- skubik.
 
Old 07-12-2005, 04:01 AM   #2
windowsrefugeeX
Member
 
Registered: Apr 2004
Posts: 272

Rep: Reputation: 30
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.
 
Old 07-12-2005, 10:30 AM   #3
skubik
Member
 
Registered: May 2003
Location: A dark corner in Canada
Distribution: Slackware64 15.0/current
Posts: 152

Original Poster
Rep: Reputation: 21
Menuless

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?

- skubik.
 
Old 07-12-2005, 07:21 PM   #4
windowsrefugeeX
Member
 
Registered: Apr 2004
Posts: 272

Rep: Reputation: 30
hehehehe I remember I used Snes9x b4 and it work for my wingman mmmmm is there a text file? i don't remember
 
Old 07-15-2005, 11:39 AM   #5
skubik
Member
 
Registered: May 2003
Location: A dark corner in Canada
Distribution: Slackware64 15.0/current
Posts: 152

Original Poster
Rep: Reputation: 21
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.

FYI: joy2key can be downloaded at http://interreality.org/~tetron/technology/joy2key/

And my configuration for the 'Mad Catz PC Con' USB controller (http://www.madcatz.com/Default.asp?P...ac_Controllers) is posted below. Seems to work just fine for me using default Snes9X keyboard controls.

.joy2keyrc
========

COMMON
-thresh -32000 32000 -32000 32000 -32767 16383 -32767 16383 -16383 16383 -16383 16383 -16383 16383

START default
-axis Left Right Up Down Up Down Left Right Left Right Up Down

START snes9x
-X
-buttons y t r m null null space null Return null
-axis Left Right Up Down null null null v null b null null null null

Last edited by skubik; 07-15-2005 at 11:40 AM.
 
Old 07-15-2005, 01:22 PM   #6
windowsrefugeeX
Member
 
Registered: Apr 2004
Posts: 272

Rep: Reputation: 30
Nice dude, I saw those controllers and yeah they're cheap maybe I'll buy one because of the analogs for my wingman broke hehehehehe.

the rumble does not work thou right?
 
Old 07-22-2005, 01:53 AM   #7
rctechs
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snes9x dudeman41465 Mandriva 2 10-14-2005 03:04 PM
Mouse triggers? carlosinfl Linux - Hardware 0 01-31-2005 02:18 AM
Network triggers ksoftirqd/0 weird behaviour bruno buys Linux - Networking 1 09-20-2004 05:24 PM
Snes9x zaicheke Linux - Software 6 07-31-2004 06:16 PM
perl & oracle triggers champ Programming 2 07-12-2004 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration