NetBSD Problem Report #30249
From www@netbsd.org Mon May 16 19:44:05 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 4EF9D63B116; Mon, 16 May 2005 19:44:05 +0000 (UTC)
Message-Id: <20050516194405.4EF9D63B116@narn.netbsd.org>
Date: Mon, 16 May 2005 19:44:05 +0000 (UTC)
From: svs+pr@grep.ru
Reply-To: svs+pr@grep.ru
To: gnats-bugs@netbsd.org
Subject: SDL does not recognize USB joysticks that use nonzero report IDs
X-Send-Pr-Version: www-1.0
>Number: 30249
>Category: pkg
>Synopsis: SDL does not recognize USB joysticks that use nonzero report IDs
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: dillo
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 16 19:45:00 +0000 2005
>Closed-Date: Sat Jun 24 11:15:32 +0000 2006
>Last-Modified: Sat Jun 24 11:15:32 +0000 2006
>Originator: Sergey Svishchev
>Release: 3.99.1
>Organization:
>Environment:
>Description:
A "WiseGroup MP-8866" PlayStation-to-USB controller adapter presents itself in the following way:
uhidev0: vendor 0x0925 MP-8866 Dual USB Joypad, rev 1.00/2.88, addr 3, iclass 3/0
uhidev0: 2 report ids
uhid0 at uhidev0 reportid 1: input=6, output=3, feature=0
uhid1 at uhidev0 reportid 2: input=6, output=3, feature=0
The code in SDL_sysjoystick.c assumes that all HID devices use report ID 0 and fails to attach this "joystick".
>How-To-Repeat:
>Fix:
--- src/joystick/bsd/SDL_sysjoystick.c.orig
+++ src/joystick/bsd/SDL_sysjoystick.c
@@ -280,7 +281,8 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy)
}
rep = &hw->inreport;
- rep->rid = 0;
+ if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0)
+ rep->rid = -1; /* XXX */
if (report_alloc(rep, hw->repdesc, REPORT_INPUT) < 0) {
goto usberr;
}
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->dillo
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Tue, 17 May 2005 12:57:51 +0000
Responsible-Changed-Why:
Dillo said he'd take a look at this one.
From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/30249
Date: Sat, 24 Jun 2006 13:04:52 +0400
SDL 1.2.10 includes this fix.
--
Sergey Svishchev
State-Changed-From-To: open->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Sat, 24 Jun 2006 11:15:32 +0000
State-Changed-Why:
1.2.10 includes this fix, and pkgsrc is at 1.2.10.
Thanks for the PR&feedback!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.