USB Joystick
I have a original Nintendo64 joypad on a USB converter. In windows it is indentified as a:-
4 axis 16 button gamepad In suse i went in to yast and selected joysticks and it said that if you have a usb controller then you should just plug it in and use it? The options available related to the old style controller socket on my soundcard. Running various games showed the joypad wasn't detected and particularly in MuOpen64 which is a n64 emulator i would like to use. I have tried selecting in yast a controller similar to mine but with no luck. It just doesn't work. I have tried searching about this with no luck either. What do i need to do? |
Maybe all you have to do is to load the correct module? Try this in a terminal when your joypad is connected
Code:
su Good luck! |
Thanks a lot for the reply megaman! Its really frustrating to manage to get this emulator all working but with no controller!
I did what you said logged in as root and typed the following:- modprobe joydev cat /dev/input/js0 And it did indeed do a load of 'garbage' when i moved the stick or pressed the buttons. Also i have noticed that if i go to 'kcontrol' and go to the joystick option the pad is identified as /dev/input/js0 and if i move the stick etc it seems to work and also offers the option to calibrate. But i just fired up Americas Army (native linux game) and if i go to 'configure controls' pressing buttons on the pad arent recognised, it does nothing. And similarly in MuOpen64 it doesn't see it either. So how do i get games etc to see it? |
Hello again Jon Briggs!
I wish I could help you out more, but I have no experience with either AA or MuOpen64 (I never heard of this emulator before actually). I have used Mupen64 though and to get joypad working on it you will need some input plugins (such as blight_input if my memory does not fail me). Take a look at MuOpen64 page to see if you can dig something up. Some games really don't have support for joypads at all (and I think they are the majority). As I said, I never tried Americas Army myself, but since it is a FPS and most FPS don't have inbuilt joypad support, chances that AA does not support joypads are huge (you can tell better than me if it has joypad/stick support or not). In this case, there is little you can do. However, if you really want to play AA with a joypad, there is a work around. For example, you could use a program to map your joypad keys to the keyboard. I've tried "xjoypad" before and it worked all right(try google or using the package manager of your distribution). I can't remember if it was possible to map the analog stick with xjoypad though. At least now we know you joypad works perfectly, it is just a matter to dig a plugin to Mupen and check out xjoypad, if you really want to play a FPS with a pad :) Regards! |
ah yes it is 'mupen64-0.5' and uses the blight SDL plugin but it still doesn't see the pad!
The only thing i can think of is to edit the conf file pointing the input thing directly at the joystick? ie: point it to /dev/input/js0 ? Could that work? |
I think it is worth a shot. Backup that file first just in case. I usually don't backup anything and pull my hairs after :D.
If that does not work, try one of those plugins: http://www.ngemu.com/n64/mupen64.php?action=plugins Bookmark that site too if you are into emulators. I personally am an emu freak :D. Check this thread out if you need suggestions for other emulators: http://www.linuxquestions.org/questi...d.php?t=323771 |
yeah it seems to recreate the file if you edit it back to what it was when you fire it up, but i will try the plugins thanks, and if they don't work i guess i can try another emulator at least we have established that my controller should work and its more the applications i'm using it with rather than linux itself thats the problem.
By the way yeah its somthing i just sort of came back to, years ago i collected around 30 n64 roms so as im using linux more i thought it would be a good addition gaming wise as there aren't a massive amount of games in linux. |
hmmm yeah im having no luck :(
I tried to grab the nan SDL plugin but it won't compile, i have gtk and lib installed but it says this:- *** The gtk-config script installed by GTK could not be found *** If GTK was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GTK_CONFIG environment variable to the *** full path to gtk-config. configure: error: Cannot find GTK: Is gtk-config in path? So why can't it find gtk? If i try and isntall it with smart it says its already there. I have also looked at fake64 but i can't get that to compile either :( |
Hmmm, I don't think you have to compile anything. The Blight plugin is a shared object(kinda like a dll). Here is a link to the plugin you want to use:
http://www.ngemu.com/download.php?action=plugin&id=77 Download that file. That file is called "blight_input-0.0.8.so". What you basically have to do is to copy that file to your <path to mupen64/plugin" directory. I will give you an example: Example 1: Code:
cp blight_input-0.0.8.so /usr/local/share/mupen64.0.5.1/plugin Example 2: Most applications in linux save its setting in a hidden folder in the user directory. I will assume that you are user "Jon" and have your home at /home/Jon. I believe mupen64 stores its settings under a .mupen64 directory under your home. So basically, copy that file there: Code:
cp blight_input-0.0.8.so /home/Jon/.mupen64/plugin Good luck! |
it isnt the blight input plugin im trying to compile its the wingman64 plugin. It comes with the blight plugin as default ans doesnt work for me and as the wingman64 ones doesnt use SDL i thought it might work.
but if you have a link for a compiled version of the wingman plugin maybe i could try it. |
I will take a look around. Just out of curiosity: Is Mupen64 working fine for you? It is kinda weird. I believe that sound output in mupen uses SDL.
Be right back :). |
I could not find Wingman64 binary anywhere. If anyone ever compiled it and made a binary, they kept it in secret :D. I found, however, 2 other compiled plugins that you may want to try:
http://emulationrealm.net/n64_plugin...4_input.so.bz2 http://emulationrealm.net/n64_plugin..._input.tar.bz2 The first link is supposed to be the best of the two, but still inferior to blight_input. But who knows, maybe it works and you may like it. I never tried them myself ^_^;; |
Oh... just one more thought. If you still can't make it work, you could try, instead of using the .rpm you have installed, to run a brand new compiled binary of mupen64. Simply uncompress it somewhere and see if that helps. Maybe you have an old rpm or the binary was compiled without working with joy plugins (it is a long shot, but it does not hurt to try).
This is the file that you want: http://mupen64.emulation64.com/files...64-0.5.tar.bz2 uncompress it and run: Code:
bunzip2 mupen64-0.5.tar.bz2 |
All times are GMT -5. The time now is 01:18 PM. |