From owner-freebsd-questions@FreeBSD.ORG Mon Jan 14 12:17:03 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 18DDD16A417 for ; Mon, 14 Jan 2008 12:17:03 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from dd17730.kasserver.com (dd17730.kasserver.com [85.13.138.103]) by mx1.freebsd.org (Postfix) with ESMTP id DF5AB13C44B for ; Mon, 14 Jan 2008 12:17:02 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from nermal.rz1.convenimus.net (sub87-230-112-53.he-dsl.de [87.230.112.53]) by dd17730.kasserver.com (Postfix) with ESMTP id 94DD11866B8A7 for ; Mon, 14 Jan 2008 13:17:02 +0100 (CET) Received: by nermal.rz1.convenimus.net (Postfix, from userid 8) id B035315217; Mon, 14 Jan 2008 12:44:24 +0100 (CET) To: freebsd-questions@freebsd.org Path: not-for-mail From: Christian Baer Newsgroups: gmane.os.freebsd.questions Date: Mon, 14 Jan 2008 12:44:24 +0100 (CET) Organization: Convenimus Projekt Lines: 12 Message-ID: References: <20080114071251.GA11712@Klabautermann.ks.se> NNTP-Posting-Host: sunny.rz1.convenimus.net X-Trace: nermal.rz1.convenimus.net 1200311064 32851 192.168.100.5 (14 Jan 2008 11:44:24 GMT) X-Complaints-To: abuse@convenimus.net NNTP-Posting-Date: Mon, 14 Jan 2008 11:44:24 +0000 (UTC) User-Agent: slrn/0.9.8.1 (FreeBSD/6.2-RELEASE-p8 (sparc64)) 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 12:17:03 -0000 On Mon, 14 Jan 2008 08:12:51 +0100 Christopher Illies wrote: > I tried out usbhidaction with something like: > Generic_Desktop:Game_Pad.Button:Button_1 1 1 /bin/echo -n ls > > Obviously, this approach does not work as I hoped. "ls" is echoed in a > shell window, but it is not interpreted as input. Then use the command directly: /bin/sh -c ls Regards, Chris