Help - Search - Members - Calendar
Full Version: Joysticks On The Zaurus
OESF Portables Forum > Everything Else > Archived Forums > Zaurus General Forums > General Support and Discussion > Accessories
anonuk
Has anyone actually managed to play one of the emulators with a joystick on USB host? if so, any instructions on how to do it?

The joystick is recognised by the Z, but I don't know how to use it in any games or map the keys......
Cresho
how do you know it works and if you open a text file, can you type into it?
anonuk
cat /dev/js0 gives me stuff in the console, and jstest gives me all the information that the buttons and direction pads are working.

Now how would I use it? It doesnt seem to map to regular keyboard keys so I cant see keyhelper customisation being the way forward...
Antikx
QUOTE(anonuk @ Jan 19 2006, 07:04 AM)
Has anyone actually managed to play one of the emulators with a joystick on USB host? if so, any instructions on how to do it?

The joystick is recognised by the Z, but I don't know how to use it in any games or map the keys......
*


What make model of joystick do you have?
If you have sucess I may grab the same.
anonuk
QUOTE(Antikx @ Jan 20 2006, 02:12 PM)
What make model of joystick do you have?
If you have sucess I may grab the same.
*


Its a regular cheap gamepad (PC-line) i got it for 3 pounds in PC world - i think any gamepad would work, also only about 6 buttons are needed for most of the old console games (4+Start+Select)

I just managed to get it working for SNES games, im busy editing the ZEMUFE scripts so that I can launch them in the gui, I will post instructions once I'm sure it works - also gonna try it with dgen and nester, thanks to whoever compiled joystick support in on the cacko feed!

So far, it seems that most stuff is quite playable - ive tried mariokart, fifa98 and desert strike - much better than on the keyboard. I'm wondering if two player will work, i'm getting another gamepad from a friend later tonight to give it a try.
tombraider
I just hooked up my Gravis Eliminator Gamepad Pro and it is recognized by name in system info! But how do I get it to actually work in games? Heretic and Doom don't seem to have a choice for joystick and I just tried a few snes games and it doesn't automatically work.

Could you explain what files you changed to get yours to work? And what is the ipk in the Cacko feed you used?

Thanks...

QUOTE(anonuk @ Jan 22 2006, 10:53 PM)
QUOTE(Antikx @ Jan 20 2006, 02:12 PM)
What make model of joystick do you have?
If you have sucess I may grab the same.
*


Its a regular cheap gamepad (PC-line) i got it for 3 pounds in PC world - i think any gamepad would work, also only about 6 buttons are needed for most of the old console games (4+Start+Select)

I just managed to get it working for SNES games, im busy editing the ZEMUFE scripts so that I can launch them in the gui, I will post instructions once I'm sure it works - also gonna try it with dgen and nester, thanks to whoever compiled joystick support in on the cacko feed!

So far, it seems that most stuff is quite playable - ive tried mariokart, fifa98 and desert strike - much better than on the keyboard. I'm wondering if two player will work, i'm getting another gamepad from a friend later tonight to give it a try.
*

sidmoraes
See at these pages:

http://d.hatena.ne.jp/taketyon/

http://www.piro.hopto.org/~piro/pukiwiki/p...%D1libSDL%5D%5D

http://www.piro.hopto.org/~piro/pukiwiki/p...%DF%A5%E5%5D%5D


Use versions with joystick enabled, and be happy.
anonuk
to get it working in cacko rom on 3100 (but should be similar on all Zs)

- install snes9x-sdljoy from cacko feed

- you can play with a joystick by typing:

CODE
snes9x-sdljoy -j <gamename>


but this will only give you a small snes9x screen

- run full screen with joystick:
CODE
snes9x-sdljoy -j -xs 320 -ys 240 <gamename>


- install ZEMUFE and edit the scripts to enable joystick:
example: for snes9x smc games edit /opt/QtPalmtop/bin/zemufeex_smc.sh and change snes9x to snes9x-sdljoy and add the -j command line option.

-load zemufe and select the snes game - It should play full screen with joystick no problems.

A similar method should work with znester,dgen and sms - not sure about zgnuboy -
they will have different command line options to enable joystick support though..

I havent tried doom or heretic (only emulators so far), i am installing them at the moment and i'll post results...

Good luck!

UPDATE: From the page sidmoraes posted i got the other emulators command options:
CODE
znester-sdljoy <rom_image_file> --joystick
sms-sdl <rom_image_file> --joystick
dgen -j <rom_image_file>
anonuk
QUOTE
But how do I get it to actually work in games? Heretic and Doom don't seem to have a choice for joystick and I just tried a few snes games and it doesn't automatically work.


There is a menu option in doom to enable the joystick and it works nice: :

1 Press cancel to see menu
2.Select options then general options
3. Press right arrow to move to next page of options
4. Select enable joystick and press enter to enable it
5. Enjoy joystick enabled doom!

There you go, its really simple - i imagine heretic and quake have similar menu settings.
Are there any other games that might work with the joystick anyone can recommend?
Jon_J
Hi anonuk,
My only "newer" joystick with USB has 26 switches in it. It isn't recognized. I tried to type into a text document, but nothing shows up. It's a logtech dual action. Do you get an "Updating" message in Qtopia when you plug it in? Like when you insert an SD card? My other older joysticks have a gameport type connectors, I know these wouldn't work.

Jon
sidmoraes
What did you get with lsusb?
Maybe you only need to adjust /etc/hotplug/usb.handmap including your joystick.
Jon_J
It must have been detected. This is the bash output
--------------------------------------------------------
# lsusb
Duplicate product spec at line 2454 product 0846:4240 WG111 WiFi
Unknown line at line 5752
Unknown line at line 5753
Unknown line at line 5754
Unknown line at line 5755
Unknown line at line 5756
Unknown line at line 5757

Unknown line at line 5783
Unknown line at line 5784
Unknown line at line 5785
Unknown line at line 5786
Unknown line at line 5787
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 046d:c216 Logitech, Inc.
--------------------------------------------------------
I don't have WiFi (It is listed on first line).
I deleted some lines (36 total) to make this post smaller. (Unknown line at line xxxx are all sequential from 5752 to 5787)
I looked in /etc/hotplug/usb.handmap, with ZEditor, but I'm not shure what to add to it, or look for.
I saw there are other brands of joysticks listed in there, but I didn't edit it because I'm not sure what I need to "add" to it.

Thank you,
Jon

EDIT: I used the command anonuk showed up in this post.
-------------------------------
$ jstest /dev/js0
Joystick (Logitech Logitech Dual Action) has 6 axes and 12 buttons. Driver version is 2.1.0.
Testing ... (interrupt to exit)
-------------------------------
Again, I cut off some of the output to save space in this post.
tombraider
Your directions did not work for me. I just get thrown back to the desktop and the game won't launch.

I installed snes9x-sdljoy. If I type snes9x-sdljoy -j <gamename> at the console it spews forth a lot of lines which look promising but then says "Error opening Flashback". Do I have to gravitate to the folder which contains Flashback?

Tried various ways of putting "snes9x-sdljoy -j -xs 320 -ys 240" in the zemufeex_smc.sh file but the game will not launch if I change that line. The present line is: snes9x -win "$2"

QUOTE(anonuk @ Jan 23 2006, 03:14 AM)
to get it working in cacko rom on 3100 (but should be similar on all Zs)

- install snes9x-sdljoy from cacko feed

-  you can play with a joystick by typing:

CODE
snes9x-sdljoy -j <gamename>


but this will only give you a small snes9x screen

- run full screen with joystick:
CODE
snes9x-sdljoy -j -xs 320 -ys 240 <gamename>


- install ZEMUFE and edit the scripts to enable joystick:
example: for snes9x smc games edit /opt/QtPalmtop/bin/zemufeex_smc.sh and change snes9x to snes9x-sdljoy and add the -j command line option.

-load zemufe and select the snes game - It should play full screen with joystick no problems.

A similar method should work with znester,dgen and sms - not sure about zgnuboy -
they will have different command line options to enable joystick support though..

I havent tried doom or heretic (only emulators so far), i am installing them at the moment and i'll post results...

Good luck!

UPDATE: From the page sidmoraes posted i got the other emulators command options:
CODE
znester-sdljoy <rom_image_file> --joystick
sms-sdl <rom_image_file> --joystick
dgen -j <rom_image_file>

*
tombraider
Duh! Thanks I had tried to look there before but looked again and found it under "general", and the joystick worked! But I can't get Heretic to work. I changed a line in the heretic.cfg file to show "1" instead of "0" for joystick but no success. There are no gui adjustments in the game itself other than for the mouse.

Anybody have success with Heretic?

Also can't get any snes games to recognize the joystick...directions posted here didn't work for me and I couldn't understand the Japanese pages...stupid American here...what can I say...sorry. smile.gif

QUOTE(anonuk @ Jan 23 2006, 07:18 AM)
QUOTE
But how do I get it to actually work in games? Heretic and Doom don't seem to have a choice for joystick and I just tried a few snes games and it doesn't automatically work.


There is a menu option in doom to enable the joystick and it works nice: :

1 Press cancel to see menu
2.Select options then general options
3. Press right arrow to move to next page of options
4. Select enable joystick and press enter to enable it
5. Enjoy joystick enabled doom!

There you go, its really simple - i imagine heretic and quake have similar menu settings.
Are there any other games that might work with the joystick anyone can recommend?
*

sidmoraes
QUOTE(tombraider @ Jan 24 2006, 02:24 PM)
Also can't get any snes games to recognize the joystick...directions posted here didn't work for me and I couldn't understand the Japanese pages...stupid American here...what can I say...sorry.  smile.gif


Command to start snes: snes9x-sdljoy -sound -j -xs 320 -ys 240 "rom"

I use opie-sh-snes, zemu sucks with cacko...

See https://www.oesf.org/forums/index.php?showtopic=9438
sidmoraes
QUOTE(Jon_J @ Jan 23 2006, 10:35 PM)
$ jstest /dev/js0
Joystick (Logitech Logitech Dual Action) has 6 axes and 12 buttons. Driver version is 2.1.0.
Testing ... (interrupt to exit)
-------------------------------


I believe you have the joystick working. Try to see command line in another reply.

Otherwise you can use joy2key. I use it for games that does not suport joystick in zaurus.

Rename the file, without ".txt"

Give me your return.
sidmoraes
QUOTE(tombraider @ Jan 24 2006, 02:24 PM)
Anybody have success with Heretic?



Try joy2key...
Jon_J
Seems like I'm missing a library file "libsl.qmid"
I used Tree!explorer and looked in /home/QtPalmtop//i18n/en/
Only file in there is ".directory"
Here's my output:
--------------------------------------------------------
$ snes9x-sdljoy -j -xs 320 -ys 240 flashback.smc
Display size = 480x640
could not open translation file /home/QtPalmtop//i18n/en/libsl.qmid
Initializing SDL JOYSTICK SUBSYSTEM...
Using standard joystick setting.
Joystick (Logitech Logitech Dual Action) has 6 axes and 12 buttons.
Ok.
Rate: 22050, Buffer size: 4096, 16-bit: yes, Stereo: yes, Encoded: no
QT_GetMachine: /proc/deviceinfo/product is 'SL-C3100
'
detected machine is 'Sharp SL-5000D'
QT_GetRotation: Read spec from '/tmp/qtembedded-zaurus/QtEmbedded-0.spec'
spec is 'Transformed:Rot270:Vga:0'
Rot=3, Qvga=0
QT_SetVideoMode: argSize=480x640
QT_SetVideoMode: qteSize=640x480
QT_SetVideoMode: fbSize=480x640
QT_SetVideoMode: qteRotation=3
QT_SetVideoMode: userRotation=-1
QT_SetVideoMode: sdlRotation=0
QT_SetVideoMode: qteKeyRotation=3
QT_SetVideoMode: sdlKeyRotation=0
Error opening: flashback.smc
Display size = 480x640
----------------------------------------------------------------------
EDIT: I didn't know where to ungzip these 2 files in the "joy2key_z.tgz"
Thank you,
Jon
tombraider
Where do you nplace these files???? huh.gif

QUOTE(sidmoraes @ Jan 24 2006, 11:55 PM)
QUOTE(Jon_J @ Jan 23 2006, 10:35 PM)
$ jstest /dev/js0
Joystick (Logitech Logitech Dual Action) has 6 axes and 12 buttons. Driver version is 2.1.0.
Testing ... (interrupt to exit)
-------------------------------


I believe you have the joystick working. Try to see command line in another reply.

Otherwise you can use joy2key. I use it for games that does not suport joystick in zaurus.

Rename the file, without ".txt"

Give me your return.
*

sidmoraes
QUOTE(Jon_J @ Jan 24 2006, 05:19 PM)
Error opening: flashback.smc


You have trouble with these "rom".
sidmoraes
QUOTE(tombraider @ Jan 26 2006, 06:02 AM)
Where do you nplace these files????  huh.gif



Anywhere. Then run: ./joy2key -config kbd1
Did you se a file called ".joy2keyzrc" ?
Jon_J
sorry for the newb questions, but when I run /joy2key -config kbd1
I get "No such file or directory"
"joy2key_z.tgz" is in the root dir of my SD card
Should I place it on my internal hard drive, or can I change to my card directory, and run it from there?

flashback.smc did run from the frontend in Qtopia (Z Emu Frontend Ex)
Thank you,
Jon
sidmoraes
QUOTE(Jon_J @ Jan 26 2006, 09:43 AM)
sorry for the newb questions, but when I run /joy2key -config kbd1
I get "No such file or directory"
"joy2key_z.tgz" is in the root dir of my SD card
Should I place it on my internal hard drive, or can I change to my card directory, and run it from there?

flashback.smc did run from the frontend in Qtopia (Z Emu Frontend Ex)
Thank you,
Jon
*


if you have gtar >>
******************
su -
gtar -zxvf joy2key_z.tgz
cp joy2key-z /usr/local/bin/
chmod +x /usr/local/bin/joy2key
cp .joy2keykeyzrc /home/root
joy2key -config kbd1
******************

start your game and give to me your feedback.
Jon_J
I didn't have gtar, so I found this version from this forum. Post is dated June 2005.
(gtar_1.13.25-1_arm.ipk)
After I installed gtar, I followed your directions and below is my output.
"joy2key_z.tgz" is on my SD card. Is that causing a problem?
My SD card is formatted as FAT
--------------------------------
$ su -
# gtar -zxvf joy2key_z.tgz
tar (child): joy2key_z.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
gtar: Child returned status 2
gtar: Error exit delayed from previous errors
#
--------------------------------
Thank you,
Jon
sidmoraes
QUOTE(Jon_J @ Jan 26 2006, 01:43 PM)
I didn't have gtar, so I found this version from this forum. Post is dated June 2005.
(gtar_1.13.25-1_arm.ipk)
After I installed gtar, I followed your directions and below is my output.
"joy2key_z.tgz" is on my SD card. Is that causing a problem?
My SD card is formatted as FAT
--------------------------------
$ su -
# gtar -zxvf joy2key_z.tgz
tar (child): joy2key_z.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
gtar: Child returned status 2
gtar: Error exit delayed from previous errors
#
--------------------------------
Thank you,
Jon
*



Did you renamed the file from joy2key_z.tgz.txt to joy2key_z.tgz ?
Jon_J
I removed the *.txt extension. I'll try downloading it again.
I think it is corrupt, because I just tried winrar (in windows) and extracted "joy2key-z" & ".joy2keyzrc", but got this error from winrar:
! E:\DL ect\Zaurus\Zaurus SL C3100\Apps\Games\joy2key_z.tgz: CRC failed in E:\DL ect\Zaurus\Zaurus SL C3100\Apps\Games\joy2key_z.tgz. The file is corrupt

I also used the "test archive" in winrar and got the same message.
Is winrar an acceptable method for checking downloaded *.tgz and/or *.ipk files for download corruption?

Thank you,
Jon
EDIT. I just downloaded it again, removed the *.txt extension in windows, and opened it in winrar and tested it. Winrar gives me the same corruption message about CRC failing in this file, as above.

2nd EDIT. I just tested several *.tgz files, that I have downloaded for my Zaurus, in Winrar, and Got "No errors found during test operation"

Does joy2key_z.tgz.txt need to be converted? Like in a newsreader "from text to bin", or something like that?
sidmoraes
QUOTE(Jon_J @ Jan 31 2006, 07:23 AM)
I removed the *.txt extension. I'll try downloading it again.
I think it is corrupt, because I just tried winrar (in windows) and extracted "joy2key-z" & ".joy2keyzrc", but got this error from winrar:
!  E:\DL ect\Zaurus\Zaurus SL C3100\Apps\Games\joy2key_z.tgz: CRC failed in E:\DL ect\Zaurus\Zaurus SL C3100\Apps\Games\joy2key_z.tgz. The file is corrupt

I also used the "test archive" in winrar and got the same message.
Is winrar an acceptable method for checking downloaded *.tgz and/or *.ipk files for download corruption?

Thank you,
Jon
EDIT. I just downloaded it again, removed the *.txt extension in windows, and opened it in winrar and tested it. Winrar gives me the same corruption message about CRC failing in this file, as above.

2nd EDIT. I just tested several *.tgz files, that I have downloaded for my Zaurus, in Winrar, and Got "No errors found during test operation"

Does joy2key_z.tgz.txt need to be converted? Like in a newsreader "from text to bin", or something like that?
*



I does not use windows to open these file. Use gunzip and tar or gtar in your Z.
bam
here is how I did it, I took a Super Nintendo game controller and a usb keyboard, traced out the pins for the corrosponding keys(on the keyboard)then wired the buttons on the SNES controller to those points I traced on the keyboard, the small circuitry of the keyboard actually fitted into the SNES controller. End result is a SNES controller with a usb cable that sends keyboard data via usb to the zaurus. I payed $8.00 (usd) for the controller and $15.00 (usd) for the keyboard. Works perfectly!

will post pictiures and keyboard manufacturer on my site when I get some time. Along of course with details of what pins connect to what buttons.
zhaven444
Successully make my joypad works in Cacko-lite 1.23.

1. I have installed input-modules-2.4.20_1.23-lite-1_arm.ipk, (ver 2.4.18 not work for me).

2. Then lsusb in console to get my joypad HID. My joybad is a Zeroplus vibration model, with ID# 0c12:0005.

3. Next add the ID# in /etc/hotplug/usb.handmap. I just copy one entry any one of joypad in the file and replace the 2nd and 3rd parameter with above, i.e. 0x0c12 0x0005

4. reboot my C1000 and it works in jstest and snes9x! biggrin.gif

BTW, here is a link of usb id list.

http://www.astro.ufsc.br/~andre/links/data.../kcmusb/usb.ids
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.