From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: Game Controllers Date: Thu, 2 May 2013 09:55:57 -0700 Message-ID: <20130502165556.GB28625@core.coreip.homeip.net> References: <2483279.JlnWrOX8Uv@dtor-d630.eng.vmware.com> <20130502083547.279d08a3cbd7a115489de4b7@studenti.unina.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pd0-f179.google.com ([209.85.192.179]:60191 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760964Ab3EBQ4B (ORCPT ); Thu, 2 May 2013 12:56:01 -0400 Received: by mail-pd0-f179.google.com with SMTP id q10so453366pdj.24 for ; Thu, 02 May 2013 09:56:00 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Todd Showalter Cc: David Herrmann , Antonio Ospite , "open list:HID CORE LAYER" On Thu, May 02, 2013 at 11:37:48AM -0400, Todd Showalter wrote: > Ok, here's a question: could gamepad-like devices have two dev > entries? One that exported the full raw device, and one that > responded to EVIOCGNAME with "Standard Gamepad"? That way, the raw > device in all its glory would be available for anything that wanted to > understand the device, and games that just wanted bog standard console > gamepad controls could have it without having to jump through hoops. No, not in the kernel please. Create a library that implements the "standard gamepad", like we have tslib for "standard touchscreen" and have it do the transformations. Kernel can try doing proper mapping but userspace should examine device and try to make most out of what it offers even if it is not exactly PS3 controller. Thanks. -- Dmitry