From nobody@FreeBSD.org  Mon Mar 22 10:41:46 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1801616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Mar 2004 10:41:46 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1234443D41
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Mar 2004 10:41:46 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i2MIfj72048311
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Mar 2004 10:41:45 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i2MIfjjh048309;
	Mon, 22 Mar 2004 10:41:45 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200403221841.i2MIfjjh048309@www.freebsd.org>
Date: Mon, 22 Mar 2004 10:41:45 -0800 (PST)
From: Martin <nakal@web.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Extend joystick driver architecture to support more than 2 buttons
X-Send-Pr-Version: www-2.3

>Number:         64588
>Category:       kern
>Synopsis:       [joy] [request] Extend joystick driver architecture to support more than 2 buttons
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 22 10:50:30 PST 2004
>Closed-Date:    
>Last-Modified:  Thu Feb 14 06:33:11 UTC 2008
>Originator:     Martin
>Release:        5.2-CURRENT
>Organization:
>Environment:
FreeBSD 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Jan 29 02:23:39 CET 2004 i386
>Description:
It would be nice to support joysticks/joypads with more than 2 buttons in FreeBSD.

The file /usr/include/sys/joystick.h restricts a joystick to 2 axis and 2 buttons. Nowerdays joysticks have more than 2 axis and 2 buttons.

(My joypad is Microsoft Sidewinder Joypad and has 10 buttons. There is no driver for FreeBSD yet, even it is easy to write one. The current architecture blocks further development.)

This struct from joystick.h needs to be changed:
struct joystick {
    int x;
    int y;
    int b1;
    int b2;
};

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, nakal@web.de
Cc:  
Subject: Re: kern/64588: [joy] [patch] Extend joystick driver architecture
 to support more than 2 buttons
Date: Tue, 12 Feb 2008 22:57:29 +0100

 Martin,
 
 can you please provide patches? Or can we close this PR?

From: Martin <nakal@web.de>
To: bug-followup@FreeBSD.org
Cc: Volker <volker@vwsoft.com>
Subject: Re: kern/64588: [joy] [patch] Extend joystick driver architecture to support more than 2 buttons
Date: Wed, 13 Feb 2008 22:13:01 +0100

 > Martin,
 
 > can you please provide patches? Or can we close this PR?
 
 
 Hi...
 
 I totally forgot about this PR. I am still interested in a solution. Someone 
 has added a [patch] tag. I don't have a patch for this, because it's an RFE.
 
 I have written an application that uses a joypad. And now I'm stuck, because I 
 need at least 4 buttons.
 
 The struct I mentioned there needs to be changed somehow to begin 
 updating/implementing drivers. I don't have enough joypads and joysticks to 
 decide how to do it correctly. I've seen joysticks that have more than one 
 analog stick and joypads that have more than one digital cross.
 
 This is a question of design. I would like to wait how you decide about it.
 
 (Btw, thanks for closing my 2 old PRs.)
State-Changed-From-To: open->suspended 
State-Changed-By: linimon 
State-Changed-When: Thu Feb 14 06:31:23 UTC 2008 
State-Changed-Why:  
Change the synopsis of this one to note that there is no patch attached. 
(Apparently the source code listing confused me, or whoever else did the 
original change). 

Since this is a request for enhancement, mark it as 'suspended' until 
someone takes an interest in implementing a patch for it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64588 
>Unformatted:
