Re: Any games with joystick support?

2005-07-14 Thread Nick Nauwelaerts
On Wed, 13 Jul 2005 23:50:34 + (UTC)
[EMAIL PROTECTED] (Christian Weisgerber) wrote:

> Christian Weisgerber <[EMAIL PROTECTED]> wrote:
> 
> > In fact, are there _any_ game ports that handle a joystick?
> 
> Is there anybody who uses a joystick with a game from ports *now*?
> 
> Not years ago, or "it should work", or other such speculation.

Some time ago I gave a go to trying to get my gravis joypads running
along with zsnes. After going through usbhidctl and
/usr/share/misc/usb_hid_usages I figured it would be pretty easy just to
assign a letter to each of the actions and then use those to map
everything in zsnes. Turned out that some buttons on the gamepad
produced seemingly the same scancodes, never really did get it to work.
usb_hid_usages does seems to give some sort of global standard, as they
have scancodes for d-pad movement in there.

// nick



Re: Any games with joystick support?

2005-07-14 Thread Christian Weisgerber
Michael Knudsen <[EMAIL PROTECTED]> wrote:

> I don't really know anything about joysticks, but could this be an
> joystick-vs-joypad issue? (Analog vs. digital.)

I know preciously little about modern joysticks, but the USB one I
got didn't even include an MS Windows driver disk, so I assume there
is a basic standard for this kind of device.

Reading from /dev/uhid0 shows that every state change produces a
three-byte message from the joystick; button presses/releases are
encoded in a bit map, stick movements (which also actuate switches)
produce other sequences.  It all looks very straightforward.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: Any games with joystick support?

2005-07-14 Thread Christian Weisgerber
Christian Weisgerber <[EMAIL PROTECTED]> wrote:

> In fact, are there _any_ game ports that handle a joystick?

Is there anybody who uses a joystick with a game from ports *now*?

Not years ago, or "it should work", or other such speculation.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: Any games with joystick support?

2005-07-14 Thread Christian Weisgerber
Jonathan Gray <[EMAIL PROTECTED]> wrote:

> I think SDL currently only uses just joy (4/i386) for joysticks and ignores
> USB based joysticks.

joy(4) hardware is dead.  When I looked for a matching joystick
several years back, it was already a bizarre fossil.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: Any games with joystick support?

2005-07-10 Thread Ray Lai
On Sat, Jul 09, 2005 at 11:25:28PM +, Christian Weisgerber wrote:
> Recently I picked up a simple USB joystick...
> 
> uhidev0 at uhub0 port 1 configuration 1 interface 0
> uhidev0: MOSIC USB 2A4K  GamePad, rev 1.10/1.00, addr 2, iclass 3/0
> uhid0 at uhidev0: input=3, output=0, feature=0
> 
> ...to check out the joystick support situation in our game ports.
> I've tried a bunch of plausible candidates and none had working
> joystick support.  In fact, are there _any_ game ports that handle
> a joystick?
> 
> I know that emulators/xmame supports joysticks through the *BSD USB
> API, but even that program segfaults when you try to use the feature.

I used to use zsnes or xsnes9x, I forgot which, with a USB gamepad.

-Ray-



Re: Any games with joystick support?

2005-07-10 Thread Jolan Luff
On Mon, Jul 11, 2005 at 01:51:28AM +1000, Jonathan Gray wrote:
> On Sun, Jul 10, 2005 at 03:00:50PM +, Christian Weisgerber wrote:
> > Jonathan Gray <[EMAIL PROTECTED]> wrote:
> > 
> > > There are quite a few SDL based ports that use a joystick via SDL.
> > 
> > Please name specific ports.
> > 
> > E.g., sdlroids claims to support "-l" for listing joysticks, but
> > that option appears to be completely ignored.
> > 
> > > ScummVM has hacky joystick support I did quite some time ago for a laugh,
> > > although this now needs to be enabled via command line option
> > > --joystick or config file option.
> > 
> > "scummvm --joystick" gives the usage message.  "--joystick=0" has
> > no discernible effect.
> 
> I think SDL currently only uses just joy (4/i386) for joysticks and ignores
> USB based joysticks.  Perhaps a joystick abstraction driver is needed
> to facilitate use of these in an ideal manner?

it has supported usb joysticks for years now courtesy of [EMAIL PROTECTED]



Re: Any games with joystick support?

2005-07-10 Thread Jonathan Gray
On Sun, Jul 10, 2005 at 03:00:50PM +, Christian Weisgerber wrote:
> Jonathan Gray <[EMAIL PROTECTED]> wrote:
> 
> > There are quite a few SDL based ports that use a joystick via SDL.
> 
> Please name specific ports.
> 
> E.g., sdlroids claims to support "-l" for listing joysticks, but
> that option appears to be completely ignored.
> 
> > ScummVM has hacky joystick support I did quite some time ago for a laugh,
> > although this now needs to be enabled via command line option
> > --joystick or config file option.
> 
> "scummvm --joystick" gives the usage message.  "--joystick=0" has
> no discernible effect.

I think SDL currently only uses just joy (4/i386) for joysticks and ignores
USB based joysticks.  Perhaps a joystick abstraction driver is needed
to facilitate use of these in an ideal manner?



Re: Any games with joystick support?

2005-07-10 Thread Keith Matthews
On Sun, 10 Jul 2005 14:49:31 + (UTC)
[EMAIL PROTECTED] (Christian Weisgerber) wrote:

> Michael Knudsen <[EMAIL PROTECTED]> wrote:
> 
> > games/heroes seems to support joystick control.
> 
> It says "No joystick found", despite successfully opening /dev/uhid0.
> 

I haven't really followed the thread, but the following comes from a
post made back in March on the apcupsd list and *may* be related

===

KERNEL CONFIGURATION

You will need to rebuild your kernel in order to disable the uhid
driver. uhid is not sufficient for apcupsd at this time and we need to
prevent it from grabbing the UPS device. You should disable the
following devices in your kernel config file (comment them out):


OpenBSD (you WILL lose use of USB keyboard and mouse):
uhidev, ums, wsmouse, ukbd, wskbd, uhid


FreeBSD and NetBSD also have problems in this area.



Re: Any games with joystick support?

2005-07-10 Thread Christian Weisgerber
Jonathan Gray <[EMAIL PROTECTED]> wrote:

> There are quite a few SDL based ports that use a joystick via SDL.

Please name specific ports.

E.g., sdlroids claims to support "-l" for listing joysticks, but
that option appears to be completely ignored.

> ScummVM has hacky joystick support I did quite some time ago for a laugh,
> although this now needs to be enabled via command line option
> --joystick or config file option.

"scummvm --joystick" gives the usage message.  "--joystick=0" has
no discernible effect.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: Any games with joystick support?

2005-07-10 Thread Michael Knudsen
Quoting Christian Weisgerber ([EMAIL PROTECTED]):
> > games/heroes seems to support joystick control.
> 
> It says "No joystick found", despite successfully opening /dev/uhid0.

I don't really know anything about joysticks, but could this be an
joystick-vs-joypad issue? (Analog vs. digital.)

Looking at the dmesg output:

uhidev0: MOSIC USB 2A4K  GamePad, rev 1.10/1.00, addr 2, iclass 3/0
uhid0 at uhidev0: input=3, output=0, feature=0

It says `GamePad' so perhaps not.

Regards,
Michael.
-- 
Five exclamation marks, the sure sign of an insane mind.
-- (Terry Pratchett, Reaper Man)



Re: Any games with joystick support?

2005-07-10 Thread Christian Weisgerber
Michael Knudsen <[EMAIL PROTECTED]> wrote:

> games/heroes seems to support joystick control.

It says "No joystick found", despite successfully opening /dev/uhid0.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: Any games with joystick support?

2005-07-10 Thread Michael Knudsen
Quoting Christian Weisgerber ([EMAIL PROTECTED]):
> ...to check out the joystick support situation in our game ports.
> I've tried a bunch of plausible candidates and none had working
> joystick support.  In fact, are there _any_ game ports that handle
> a joystick?

games/heroes seems to support joystick control.

Regards,
Michael.
-- 
Rumour is information distilled so finely that it can filter through
anything.
-- (Terry Pratchett, Feet of Clay)



Re: Any games with joystick support?

2005-07-09 Thread Jonathan Gray
On Sat, Jul 09, 2005 at 11:25:28PM +, Christian Weisgerber wrote:
> Recently I picked up a simple USB joystick...
> 
> uhidev0 at uhub0 port 1 configuration 1 interface 0
> uhidev0: MOSIC USB 2A4K  GamePad, rev 1.10/1.00, addr 2, iclass 3/0
> uhid0 at uhidev0: input=3, output=0, feature=0
> 
> ...to check out the joystick support situation in our game ports.
> I've tried a bunch of plausible candidates and none had working
> joystick support.  In fact, are there _any_ game ports that handle
> a joystick?
> 
> I know that emulators/xmame supports joysticks through the *BSD USB
> API, but even that program segfaults when you try to use the feature.

There are quite a few SDL based ports that use a joystick via SDL.
ScummVM has hacky joystick support I did quite some time ago for a laugh,
although this now needs to be enabled via command line option
--joystick or config file option.  Playing 2d adventure games with a
racing wheel from a friends PS2 seemed rather amusing at the time.

games/scummvm
and games/bass games/fotaq or http://www.scummvm.org/demos.php
for files to use with the interpreter.



Any games with joystick support?

2005-07-09 Thread Christian Weisgerber
Recently I picked up a simple USB joystick...

uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: MOSIC USB 2A4K  GamePad, rev 1.10/1.00, addr 2, iclass 3/0
uhid0 at uhidev0: input=3, output=0, feature=0

...to check out the joystick support situation in our game ports.
I've tried a bunch of plausible candidates and none had working
joystick support.  In fact, are there _any_ game ports that handle
a joystick?

I know that emulators/xmame supports joysticks through the *BSD USB
API, but even that program segfaults when you try to use the feature.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]