From owner-freebsd-hackers Sun Aug 8 15:43:41 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from home.humboldt1.com (home.humboldt1.com [206.13.45.1]) by hub.freebsd.org (Postfix) with ESMTP id 3CCD41506A for ; Sun, 8 Aug 1999 15:43:37 -0700 (PDT) (envelope-from ognir@humboldt1.com) Received: from shovel.groff (ppp222-pm6.humboldt1.com [207.104.21.215]) by home.humboldt1.com (Pro-8.9.2/Pro-8.9.2) with SMTP id PAA06594 for freebsd-hackers@freebsd.org; Sun, 8 Aug 1999 15:41:15 -0700 (PDT) Date: Sun, 8 Aug 1999 15:41:15 -0700 (PDT) Message-Id: <199908082241.PAA06594@home.humboldt1.com> From: Joe Groff To: freebsd-hackers@freebsd.org Reply-To: ognir@humboldt1.com Subject: New Joystick driver? X-Mailer: XCmail 1.0.0 - with PGP support, PGP engine version 0.5 (FreeBSD) X-Mailerorigin: http://www.fsai.fh-trier.de/~schmitzj/Xclasses/XCmail/ MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I believe the joystick driver in FreeBSD could probably be redone, to support all the non-standard joysticks that many people (like me :) have. Having just recently converted to FreeBSD from Linux, though, I don't know the best way to go about it. Here are some ideas (sorry if my terminology is wrong): (1) Redefine the core joystick code as a controller, and then have all the different joystick types ride on top of it, like: controller joy0 at isa? port IO_GAME # Serves joystick port 0x201 #device jan0 at joy0 # Analog joystick device jgpp0 at joy0 # Gravis GamePad Pro etc... This would also allow for modules to be used for all the different joystick types, I think. (2) Have a monolithic joystick driver, with options to pick the proper type: device joy0 at isa? port IO_GAME # Just like it is now options JOY_ANALOG options JOY_GRAVIS etc... I also believe it should use the Linux joystick's device interface, so that folks that have already written their games to use the Linux joysticks can work in FreeBSD with minor effort. Any help or comments are appreciated. -Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message