You are not logged in.

#1 2007-04-17 06:35:50

bremont
Member
Registered: 2007-04-17
Posts: 9

joypad in xmame

hi


i got a problem with xmame, i ran kxmame and then configured to use my usb joypad, but when i try run a game a get this error message: Error: joytype 1 is not available 

any help???


thnxs in advance

Offline

#2 2007-04-17 06:45:43

Asaru
Member
Registered: 2006-05-06
Posts: 14

Re: joypad in xmame

is the joydev module loaded?

did you check the device path for your joypad?

/dev/js0 or /dev/input/js or something like that?

i think you need to configure the path for your gamepad somewhere in the config dialog.. but i have no clue where it was..

Offline

#3 2007-04-17 06:54:55

bremont
Member
Registered: 2007-04-17
Posts: 9

Re: joypad in xmame

already check that point, device path is right.   for the joypad is /dev/input/js0  and i paste that path in the config dialog...

Offline

#4 2007-04-17 08:24:58

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: joypad in xmame

I too was having this problem a few months ago. I gave up because I never found a solution. My joypad works fine w/ everthing else I use it for.

Offline

#5 2007-04-17 20:28:45

nj
Member
Registered: 2007-04-06
Posts: 93

Re: joypad in xmame

I have the following line in my ~/.xmame/xmamerc:

joytype 5

The 5 sets the type to SDL joystick. You can also test this by passing a parameter to xmame:

xmame -joytype 5 pacman

Offline

#6 2007-04-18 16:07:03

bremont
Member
Registered: 2007-04-17
Posts: 9

Re: joypad in xmame

i dont have the ~/.xmame/xmamerc !!!!  so??? what can i do??



thnxs in advance

Offline

#7 2007-04-18 16:54:24

nj
Member
Registered: 2007-04-06
Posts: 93

Re: joypad in xmame

You can create a xmamerc with the default options by first creating the ~/.xmame directory if it doesn't exist and then running:

xmame -showconfig > ~/.xmame/xmamerc

Offline

#8 2007-04-26 23:44:26

bremont
Member
Registered: 2007-04-17
Posts: 9

Re: joypad in xmame

i' have modified the xmamerc but  still the same.... kxmame don't leave me run any rom because the joytype error  and if i try to run a game with the -joytype 5 parameter i just can't,   always got a rom missing...  this is  my configuration on the xmamerc:

i dont wanna give up yet....  any help???

### xmame running parameters ###

### Video Related ###
video-mode              0
fullscreen              0
arbheight               0
widthscale              1
heightscale             1
effect                  0
autodouble              1
frameskipper            1
throttle                1
frames_to_run           0
sleepidle               1
autoframeskip           1
maxautoframeskip        8
frameskip               0
brightness              1.000000
pause_brightness        0.650000
gamma                   1.000000
norotate                0
ror                     0
rol                     0
autoror                 0
autorol                 0
flipx                   0
flipy                   0

### Use additional game artwork? ###
artwork                 1
use_backdrops           1
use_overlays            1
use_bezels              1
artwork_crop            0
artwork_scale           1

### Vector Games Related ###
beam                    1.000000
flicker                 0.000000
intensity               1.500000
antialias               1
translucency            1
hardware-vectors        1
# mngwrite              <NULL> (not set)

### Aspect ratio handling ###
keepaspect              1
perfectaspect           0
displayaspectratio      1.333333

### SDL Related ###
doublebuf               1
grabinput               0
alwaysusemouse          0
cursor                  1

### Video Mode Selection Related ###

### Input device options ###
joytype                 5
analogstick             0
ugcicoin                0
steadykey               0
a2d_deadzone            0.300000
# ctrlr                 <NULL> (not set)
digital                 none
usbpspad                0
rapidfire               0

### Sound Related ###
samples                 1
samplefreq              44100
bufsize                 3.000000
volume                  -3
# audiodevice           <NULL> (not set)
# mixerdevice           <NULL> (not set)

### Digital sound related ###
# dsp-plugin            <NULL> (not set)
timer                   0

### Sound mixer related ###
# sound-mixer-plugin    <NULL> (not set)

### File I/O-related ###
rompath                 /usr/share/xmame/roms
samplepath              /usr/share/xmame/samples
inipath                 /usr/share/xmame/ini
cfg_directory           $HOME/.xmame/cfg
nvram_directory         $HOME/.xmame/nvram
memcard_directory       $HOME/.xmame/memcard
input_directory         $HOME/.xmame/inp
hiscore_directory       $HOME/.xmame/hi
state_directory         $HOME/.xmame/sta
artwork_directory       /usr/share/xmame/artwork
snapshot_directory      /usr/share/xmame/snap
diff_directory          $HOME/.xmame/diff
ctrlr_directory         /usr/share/xmame/ctrlr
comment_directory       /usr/share/xmame/comments
cheat_file              /usr/share/xmame/cheat.dat
hiscore_file            /usr/share/xmame/hiscore.dat
# record                <NULL> (not set)
# playback              <NULL> (not set)
log                     0

### MAME Related ###
defaultgame             robby
language                english
cheat                   0
skip_gameinfo           0
validate                0
bios                    default
# state                 <NULL> (not set)
autosave                0

### Frontend Related ###
clones                  1

### Internal verification list commands (only for developers) ###

### Rom Identification Related ###

### General Options ###
loadconfig              1

Last edited by bremont (2007-04-26 23:45:51)

Offline

#9 2007-04-27 00:11:24

nj
Member
Registered: 2007-04-06
Posts: 93

Re: joypad in xmame

The rom missing error is because you have the rompath set to /usr/share/xmame/roms, which is probably not where you keep your roms. Try changing the path to the correct location. Also, the pacman game was just an example, replace it with a rom you have.

If the joystick still doesn't work, run 'xmame -help' and look to see what other numbers you can pass to -joytype.

Also, if I compile xmame on my machine, it contains a -joytype 1 options, but the xmame downloaded via pacman does not. So if all else fails, you may want to try compiling the package yourself and seeing if you can use joytype 1.

Offline

Board footer

Powered by FluxBB