From owner-freebsd-questions@FreeBSD.ORG Mon Jan 14 20:03:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50A3A16A41A for ; Mon, 14 Jan 2008 20:03:32 +0000 (UTC) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: from fallbackmx08.syd.optusnet.com.au (fallbackmx08.syd.optusnet.com.au [211.29.132.10]) by mx1.freebsd.org (Postfix) with ESMTP id CE87D13C459 for ; Mon, 14 Jan 2008 20:03:31 +0000 (UTC) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: from mail03.syd.optusnet.com.au (mail03.syd.optusnet.com.au [211.29.132.184]) by fallbackmx08.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0EBCNuT029164 for ; Mon, 14 Jan 2008 22:12:23 +1100 Received: from triptrop.cse.unsw.edu.au (blaax11-a009.dialup.optusnet.com.au [203.164.190.9]) by mail03.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0EBCIQf025346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Jan 2008 22:12:20 +1100 Received: from triptrop.cse.unsw.edu.au (localhost [127.0.0.1]) by triptrop.cse.unsw.edu.au (8.14.1/8.13.6) with ESMTP id m0EB9UrB001874 for ; Mon, 14 Jan 2008 22:09:30 +1100 (EST) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: (from tbourke@localhost) by triptrop.cse.unsw.edu.au (8.14.1/8.13.6/Submit) id m0EB9UwK001873 for freebsd-questions@freebsd.org; Mon, 14 Jan 2008 22:09:30 +1100 (EST) (envelope-from tbourke) Date: Mon, 14 Jan 2008 22:09:30 +1100 From: Timothy Bourke To: freebsd-questions@freebsd.org Message-ID: <20080114110929.GB887@triptrop.cse.unsw.EDU.AU> Mail-Followup-To: freebsd-questions@freebsd.org References: <20080114071251.GA11712@Klabautermann.ks.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8NvZYKFJsRX2Djef" Content-Disposition: inline In-Reply-To: <20080114071251.GA11712@Klabautermann.ks.se> User-Agent: Mutt/1.4.2.2i X-PGP-Key: http://www.cse.unsw.edu.au/~tbourke/pubkey.txt Subject: Re: Reinterpret gamepad input as keyboeard input X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 20:03:32 -0000 --8NvZYKFJsRX2Djef Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jan 14 at 08:12 +0100, Christopher Illies wrote: > I have a gamepad and would like to make certain gamepad actions to be > seen as regular keyboard input. Is this possible? >=20 > I tried out usbhidaction with something like: > Generic_Desktop:Game_Pad.Button:Button_1 1 1 /bin/echo -n ls >=20 > Obviously, this approach does not work as I hoped. "ls" is echoed in a > shell window, but it is not interpreted as input. Would vkbd(4) do the trick? Tim. --8NvZYKFJsRX2Djef Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHi0LptKVK1sFb0ecRAj0NAJ0XlOfWKZN30ygFQuQfH4efu2ffVgCfbN/N cS6U/EmZe8/wuPX+yGUCSs4= =wf+E -----END PGP SIGNATURE----- --8NvZYKFJsRX2Djef--