Author Topic: Joysticks On The Zaurus  (Read 18266 times)

anonuk

  • Full Member
  • ***
  • Posts: 176
    • View Profile
    • http://
Joysticks On The Zaurus
« on: January 19, 2006, 07:04:14 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......
« Last Edit: January 19, 2006, 07:04:31 am by anonuk »
* C3100 with Cacko 1.23 and debian (pocketworkstation) - 1Gb SD / 1Gb CF / Prism Wifi
* C-860 with Cacko 1.21b/pdaXrom dualboot with 256Mb CF / 512 Mb SD / Prism Wifi
* SL-5500 with Cacko rom with 128Mb SD home on SD / 96 Mb CF

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Joysticks On The Zaurus
« Reply #1 on: January 19, 2006, 09:35:47 pm »
how do you know it works and if you open a text file, can you type into it?
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

anonuk

  • Full Member
  • ***
  • Posts: 176
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #2 on: January 20, 2006, 11:31:59 am »
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...
* C3100 with Cacko 1.23 and debian (pocketworkstation) - 1Gb SD / 1Gb CF / Prism Wifi
* C-860 with Cacko 1.21b/pdaXrom dualboot with 256Mb CF / 512 Mb SD / Prism Wifi
* SL-5500 with Cacko rom with 128Mb SD home on SD / 96 Mb CF

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Joysticks On The Zaurus
« Reply #3 on: January 20, 2006, 05:12:19 pm »
Quote
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......
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111559\"][{POST_SNAPBACK}][/a][/div]

What make model of joystick do you have?
If you have sucess I may grab the same.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

anonuk

  • Full Member
  • ***
  • Posts: 176
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #4 on: January 22, 2006, 05:53:28 pm »
Quote
What make model of joystick do you have?
If you have sucess I may grab the same.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111740\"][{POST_SNAPBACK}][/a][/div]

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.
* C3100 with Cacko 1.23 and debian (pocketworkstation) - 1Gb SD / 1Gb CF / Prism Wifi
* C-860 with Cacko 1.21b/pdaXrom dualboot with 256Mb CF / 512 Mb SD / Prism Wifi
* SL-5500 with Cacko rom with 128Mb SD home on SD / 96 Mb CF

tombraider

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://atoah.com/zaurus/
Joysticks On The Zaurus
« Reply #5 on: January 22, 2006, 07:00:55 pm »
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
Quote
What make model of joystick do you have?
If you have sucess I may grab the same.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111740\"][{POST_SNAPBACK}][/a][/div]

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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111986\"][{POST_SNAPBACK}][/a][/div]
Learning Chinese?  Have a Mac?  Try Hanzi Master: Download for free

Tombraider's Zaurus C1000 Tips Web Site

SL-3200 from Conics.net: Sharp ROM| SL-C1000: Pdaxrom Beta 3

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #6 on: January 22, 2006, 07:44:39 pm »
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...

anonuk

  • Full Member
  • ***
  • Posts: 176
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #7 on: January 22, 2006, 10:14:07 pm »
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: [Select]
snes9x-sdljoy -j
but this will only give you a small snes9x screen

- run full screen with joystick:
Code: [Select]
snes9x-sdljoy -j -xs 320 -ys 240
- 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: [Select]
znester-sdljoy --joystick
sms-sdl --joystick
dgen -j
« Last Edit: January 23, 2006, 01:55:44 am by anonuk »
* C3100 with Cacko 1.23 and debian (pocketworkstation) - 1Gb SD / 1Gb CF / Prism Wifi
* C-860 with Cacko 1.21b/pdaXrom dualboot with 256Mb CF / 512 Mb SD / Prism Wifi
* SL-5500 with Cacko rom with 128Mb SD home on SD / 96 Mb CF

anonuk

  • Full Member
  • ***
  • Posts: 176
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #8 on: January 23, 2006, 02:18:48 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?
« Last Edit: January 23, 2006, 02:19:13 am by anonuk »
* C3100 with Cacko 1.23 and debian (pocketworkstation) - 1Gb SD / 1Gb CF / Prism Wifi
* C-860 with Cacko 1.21b/pdaXrom dualboot with 256Mb CF / 512 Mb SD / Prism Wifi
* SL-5500 with Cacko rom with 128Mb SD home on SD / 96 Mb CF

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #9 on: January 23, 2006, 07:10:08 pm »
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
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #10 on: January 24, 2006, 12:03:47 am »
What did you get with lsusb?
Maybe you only need to adjust /etc/hotplug/usb.handmap including your joystick.
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #11 on: January 24, 2006, 01:35:23 am »
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.
« Last Edit: January 24, 2006, 01:49:17 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

tombraider

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://atoah.com/zaurus/
Joysticks On The Zaurus
« Reply #12 on: January 24, 2006, 05:19:35 pm »
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
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: [Select]
snes9x-sdljoy -j
but this will only give you a small snes9x screen

- run full screen with joystick:
Code: [Select]
snes9x-sdljoy -j -xs 320 -ys 240
- 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: [Select]
znester-sdljoy --joystick
sms-sdl --joystick
dgen -j
[div align=\"right\"][a href=\"index.php?act=findpost&pid=112009\"][{POST_SNAPBACK}][/a][/div]
Learning Chinese?  Have a Mac?  Try Hanzi Master: Download for free

Tombraider's Zaurus C1000 Tips Web Site

SL-3200 from Conics.net: Sharp ROM| SL-C1000: Pdaxrom Beta 3

tombraider

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://atoah.com/zaurus/
Joysticks On The Zaurus
« Reply #13 on: January 24, 2006, 05:24:12 pm »
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.    

Quote
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=112025\"][{POST_SNAPBACK}][/a][/div]
Learning Chinese?  Have a Mac?  Try Hanzi Master: Download for free

Tombraider's Zaurus C1000 Tips Web Site

SL-3200 from Conics.net: Sharp ROM| SL-C1000: Pdaxrom Beta 3

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Joysticks On The Zaurus
« Reply #14 on: January 24, 2006, 06:41:49 pm »
Quote
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.   

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
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...