From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 22 10:50:35 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5F9E16A4E0 for ; Mon, 22 Mar 2004 10:50:34 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D25443D4C for ; Mon, 22 Mar 2004 10:50:31 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2MIoVbv057042 for ; Mon, 22 Mar 2004 10:50:31 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2MIoVWa057041; Mon, 22 Mar 2004 10:50:31 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 22 Mar 2004 10:50:31 -0800 (PST) Resent-Message-Id: <200403221850.i2MIoVWa057041@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1801616A4CE for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/64588: Extend joystick driver architecture to support more than 2 buttons X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 18:50:35 -0000 >Number: 64588 >Category: misc >Synopsis: Extend joystick driver architecture to support more than 2 buttons >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >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: >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: >Unformatted: