WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: my joystick is not detected in zsnes  (Read 3556 times)

Offline startup

  • Newbie
  • *
  • Posts: 11
my joystick is not detected in zsnes
« on: May 20, 2010, 02:47:31 AM »
hey,
i have a joystick with 15 pin game port
i have tiny core running on my pc.
i attached an external sound card with game port to my cpu.

i have alsa extensions installed.
my sound card thus i hope is detected.

now i want zsnes(nes emulator) to detect my joystick?
where do i check that?

Thanks in advance

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: my joystick is not detected in zsnes
« Reply #1 on: May 20, 2010, 03:01:21 AM »
I believe you'll need the input-2.6.29.1-tinycore extension to get the appropriate joystick module

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: my joystick is not detected in zsnes
« Reply #2 on: May 20, 2010, 03:23:14 AM »
i have the extension installed but what do you mean by desired module??

i m still not able to get it detected

zsnes says 0 joysticks detected.

any help?
have alsa, oss and xorg installed.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: my joystick is not detected in zsnes
« Reply #3 on: May 20, 2010, 03:36:09 AM »
The extension contains a whole bunch of joystick modules in:

/usr/local/lib/modules/2.6.29.1-tinycore/kernel/drivers/input/joystick/

I don't know if any of these modules are the correct one for your joystick, but does "lsmod" show any joystick modules loaded?

If "lsmod" does not show any joystick modules loaded, you could try and manually load an appropriate sounding module and see if that helps.

Edit: and if you're using Xorg-7.4, you perhaps need a joystick section in xorg.conf

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: my joystick is not detected in zsnes
« Reply #4 on: May 20, 2010, 04:07:09 AM »
hey,
thnx for the fast replies..

/usr/local/lib/modules/2.6.29.1-tinycore/kernel/drivers/input/joystick/ shows warrior.ko.gz and warrior is the name of my joystick. Hence, i think it is recognizing it.

"lsmod" shows various modules including gameport, oss_usb, etc.... but doesn't show any modules for joystick.

plz help me out in this. how do i load my joystick module?

thnx in advance

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: my joystick is not detected in zsnes
« Reply #5 on: May 20, 2010, 04:19:39 AM »
Also, how do i edit xorg.conf file to add the section for joystick/

i did Xorg -configure
but it says fatal server error:
server is  already active for display 0
............

« Last Edit: May 20, 2010, 04:24:09 AM by startup »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: my joystick is not detected in zsnes
« Reply #6 on: May 20, 2010, 04:26:53 AM »
Since the port is on your soundcard, I'm not sure if OSS drivers support the gameport. Try with alsa.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: my joystick is not detected in zsnes
« Reply #7 on: May 20, 2010, 04:36:19 AM »
It may help with ALSA if you get in trouble:

http://alsa.opensrc.org/index.php/Joystick_support
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: my joystick is not detected in zsnes
« Reply #8 on: May 20, 2010, 04:46:19 AM »
Also, the Xorg driver is only necessary to use the stick as a mouse/keyboard. Apps supporting joysticks natively don't need it.
The only barriers that can stop you are the ones you create yourself.

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: my joystick is not detected in zsnes
« Reply #9 on: May 20, 2010, 04:53:03 AM »
@ all

i have alsa installed.
what do i do now?
 can't follow the alsa help bmarkus posted.

also, is there a way to load the joystick module ?
if so how?

or am i going the wrong way?
i simply want to use the joystick (quickshot) with zsnes to play a game

zsnes says 0 joysticks detected.
lsmod does not show any joystick module??

what now?
« Last Edit: May 20, 2010, 05:04:14 AM by Juanito »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: my joystick is not detected in zsnes
« Reply #10 on: May 20, 2010, 04:58:49 AM »
also, is there a way to load the joystick module ?
if so how?

Code: [Select]
$ sudo modprobe warrior

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: my joystick is not detected in zsnes
« Reply #11 on: May 20, 2010, 05:14:36 AM »
how do i know what joystick module i need?

i loaded  joydev, analog and warrior just becuase

my joystick is pc analog joystick with biogrip and its name is warrior 5 by quickshot


Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: my joystick is not detected in zsnes
« Reply #12 on: May 20, 2010, 05:30:06 AM »
If your joystick is analogue, I guess you only need joydev and analog.

Does "dmesg | tail -20" show anything about js0 or similar being created?

Does "modinfo analog" show any reference to your joystick?

Edit: maybe this might be useful:

http://www.mjmwired.net/kernel/Documentation/input/joystick.txt
« Last Edit: May 20, 2010, 05:35:45 AM by Juanito »

Offline startup

  • Newbie
  • *
  • Posts: 11
Re: my joystick is not detected in zsnes
« Reply #13 on: May 20, 2010, 05:39:46 AM »
modinfo analog shows me nothing

dmesg shows a long list, hopefully i dont see a js0

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: my joystick is not detected in zsnes
« Reply #14 on: May 20, 2010, 05:44:13 AM »
As per the link I posted below, you might need to create js0 yourself?