From owner-freebsd-chat@FreeBSD.ORG Tue Apr 1 00:39:15 2008 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2206D106564A for ; Tue, 1 Apr 2008 00:39:15 +0000 (UTC) (envelope-from skeptikos@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.176]) by mx1.freebsd.org (Postfix) with ESMTP id CD8E18FC26 for ; Tue, 1 Apr 2008 00:39:14 +0000 (UTC) (envelope-from skeptikos@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so660391ele.12 for ; Mon, 31 Mar 2008 17:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; bh=WU/t90vw9yxEOSTpUlGzqjOspCsNq8erqsV4UQ5qBj0=; b=qvHinKtnHPVBfED1Jn3zvuaXWxwf695FxW8gSnnk4ET9Whi7VpEi1JYkQbMEouHfxhlHmpJHa4zDX802i9m3k+y+K/ekj6UwwdC1Y+k9S+y1HVDmAXJDqqqfBBmZnWuSr1J+CbU8RYtxv7DRW7jWSnaEwKFHEQ7J0dfT8FXje9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=c85Z4vIxYXTT6zJhKOl+gKqLCaWL9D9g1sMJX7rNdRssqeSAgdZndy4mFzIQBGg+WXTSHHxEAp3xUpdrjQ3yg72PiFvKucdWGo45hP75zDwKY67uRyevlImaQY4ktVoBhZDq3JVzOkq0zUQO1QlzW2zlAeq7BuytBKGgwWYFl0o= Received: by 10.114.88.1 with SMTP id l1mr11220264wab.126.1207010353479; Mon, 31 Mar 2008 17:39:13 -0700 (PDT) Received: from localhost ( [70.162.18.231]) by mx.google.com with ESMTPS id a8sm10618621poa.2.2008.03.31.17.39.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 31 Mar 2008 17:39:12 -0700 (PDT) Date: Mon, 31 Mar 2008 17:39:21 -0700 From: christopher To: freebsd-chat@freebsd.org Message-Id: <20080331173921.da1e327c.skeptikos@gmail.com> In-Reply-To: <47F170FF.9060000@apriliaforum.net> References: <47F170FF.9060000@apriliaforum.net> X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Gamepads X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 00:39:15 -0000 On Tue, 01 Apr 2008 01:17:19 +0200 Raven wrote: > This is old news, but I searched like mad, and couldn't find anything on > the web. > Maybe some of you once have the same problem. > I wanted to play a game under Wine, but it was nearly unplayable with > the keyb controls. > So I plugged in an USB gamepad . . . it didn't work. > Time to hit the wonderful world of Google . . . > As always, the combination of Wine + "Insert_topic_here" yielded nothing > but "Linux - mainly Ubuntu" stuff. > There are enough threads, but none that helps. > Seems like Linux has /dev/input/js, I wonder if this is neccessary . . . > The Wine wiki mentions a DirectInput registry key . . . Linux only. > > We have USB keyboards and mice, we should have a gamepad, me thinks . . . > > Lemme see, > $ cat /dev/uhid1 . . nothing > $ cat /dev/uhid2 . . there it is ! > Me presses buttons, jerks sticks - terminal responds with weird output. > Good ! > Uh-huh, what about the joystick driver in ../xorg/modules/input ? > > $ man joystick > There - everything is documented in all it's glory. > > $ sudo vi /etc/X11/xorg.conf > > :snip > > Section "ServerLayout" > .. > InputDevice "Gamepad" > .. > .. > Section "InputDevice" > Identifier "Gamepad" > Driver "joystick" > Option "Device" "/dev/uhid2" > Option "Buttons" "16" > Option "many_more" > EndSection > > :snap > > Guess what - it worked. > > Tons of useless threads in hundreds of Linux forums, and all you need is > a single manpage. > Go figure . . ugh, you make me wish I was a gamer. That kind of concise instruction is almost unheard of. I hope you can find some other place on the web to post that for the masses. Kudos ~ chris -- christopher