misc/64588: Extend joystick driver architecture to support more than 2 buttons

Martin nakal at web.de
Mon Mar 22 10:50:35 PST 2004


>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:


More information about the freebsd-bugs mailing list