Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101286 - some joystick types are not enabled in xmame
Summary: some joystick types are not enabled in xmame
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-03 22:12 UTC by Erik Hovland
Modified: 2005-08-04 21:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
provides the ability to compile sdl and X input joystick types (joystick-upgrade,551 bytes, patch)
2005-08-03 22:13 UTC, Erik Hovland
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Hovland 2005-08-03 22:12:16 UTC
When the joystick use flag is used it enables the standard joystick. This is
fine. But if the user also has sdl and X use flags it would be nice if those
joystick types were available too.

Reproducible: Always
Steps to Reproduce:
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-08-03 22:13:08 UTC
got a patch?
Comment 2 Erik Hovland 2005-08-03 22:13:52 UTC
Created attachment 65041 [details, diff]
provides the ability to compile sdl and X input joystick types

This patch adds two lines to the ebuild for the current xmame-0.97.ebuild. If a
user has the joystick use flag set as well as either sdl or X then their
joystick interfaces are enabled in xmame.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2005-08-03 22:22:31 UTC
BTW, if you have sdl in your use flags, you automatically get the sdl joystick
support already.
Comment 4 Erik Hovland 2005-08-03 22:48:02 UTC
> if you have sdl in your use flags, you automatically get the sdl joystick
> support already.

At least with the current version of xmame, the JOY_SDL make variable is
required to use the sdl joystick interface. So, I hate to say you don't
automatically get sdl joystick. I think you would be correct circa 0.87.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2005-08-03 22:54:25 UTC
I don't think so.  look at src/unix/unix.mak
Comment 6 Erik Hovland 2005-08-03 23:12:48 UTC
All I can tell you is that I tried to emerge an xmame with a sdl joystick
interface several times. And everytime when I tried the sdl type from the
command line it just didn't work. Once I patched the ebuild things went fine.

I am more then willing to give this more research tomorrow and also willing to
admit the screaming children and a bad sunburn have kept me from focusing well
enough to determine what the problem was.
Comment 7 Erik Hovland 2005-08-03 23:22:39 UTC
Talk about a bummer. I just tried mythgame and xmame again with my local ebuild:
/usr/games/bin/xmame -rompath /home/mythtv/games/xmame/roms -history_file
/home/mythtv/games/xmame/history.dat -snapshot_directory
/home/mythtv/games/xmame/snapshots -hiscore_directory
/home/mythtv/games/xmame/hiscore -hiscore_file
/home/mythtv/games/xmame/hiscore.dat -noskip_disclaimer -noskip_gameinfo
-fullscreen -noartwork -noautoframeskip  -scale 1 -antialias -translucency  
-noanalogstick   -joytype 7 -samples -volume -8  -nocheat  spideyu
error: invalid value for joytype: 7

joytype 7 is listed as the sdl joystick type in the xmame man page:
7  SDL joystick driver

My libsdl merge does not have nojoystick so it should be available. I guess
there are deeper problems. Thanks for the quick responses. Feel free to resolve
this if you can't use the patch. I will open a new bug once I figure out what
the heck is wrong with xmame and it not liking other joystick types then the old
i386.
Comment 8 Erik Hovland 2005-08-03 23:36:04 UTC
dopey me. The manpage is wrong. The sdl joystick interface is -joytype 5.
Banging the keyboard to make a patch for the xmame folks.
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2005-08-04 21:05:03 UTC
ok... well I turned on the xinput stuff.

Calling it fixed.  Thanks for the bug report and patch.