From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754621AbZCDDzm (ORCPT ); Tue, 3 Mar 2009 22:55:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752674AbZCDDza (ORCPT ); Tue, 3 Mar 2009 22:55:30 -0500 Received: from mail-gx0-f174.google.com ([209.85.217.174]:62261 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbZCDDz3 (ORCPT ); Tue, 3 Mar 2009 22:55:29 -0500 MIME-Version: 1.0 Date: Tue, 3 Mar 2009 22:55:26 -0500 X-Google-Sender-Auth: b705ca97410a7480 Message-ID: <5aa163d00903031955m42fc3583s3fc784dc3a8a1725@mail.gmail.com> Subject: PATCH [UPDATED] [0/3] input: xpad.c - Xbox 360 wireless and sysfs support From: Mike Murphy To: linux-kernel@vger.kernel.org Cc: linux-input@vger.kernel.org, linux-usb@vger.kernel.org, Linus Torvalds , Frederic Weisbecker , Greg KH , Oliver Neukum , Andrew Morton Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greetings, The following patchset is an update to my prior submission, which addresses the code division, typecasting, and internal function non-use issues present in the previous version of the patch. This patch has not been changed since last night in the prior thread... testing this evening confirmed that it is working correctly for the Xbox 360 wireless hardware. Thanks to Andrew Morton, Greg K-H, and Linus Torvalds for their help. --- Original Description --- This patchset improves the in-kernel xpad.c driver by improving support for the Xbox 360 wireless controllers, and by adding a number of features that can be controlled via a new sysfs interface. Rumble is now enabled on the wireless 360 controllers, and the LED display is set properly instead of flashing constantly. New features include implementation of a dead zone for the analog sticks, ability to map the stick inputs onto a square axis, ability to turn rumble off on a per-controller basis, and a mechanism for identifying the controller type and (presumably) unique ID of wireless controllers. In addition, and as a change to the most recent development patch, I have adjusted the triggers so that they both implement half-axes instead of full axes. In other words, they report a range from 0 to +32767, instead of -32767 to +32767. This change improves behavior on some gaming emulators, and it can be turned off via the sysfs interface. In addition to the core patch, I have updated Documentation/input/xpad.txt, and I have added Documentation/ABI/testing/game_device-sysfs-interface to document the added sysfs interface. I'd like to thank Oliver Neukum, Greg Kroah-Hartman, and Frederic Weisbecker for their helpful feedback during the development process. Mike -- Mike Murphy Ph.D. Candidate and NSF Graduate Research Fellow Clemson University School of Computing 120 McAdams Hall Clemson, SC 29634-0974 USA Tel: +1 864.656.2838 Fax: +1 864.656.0145 http://cirg.cs.clemson.edu/~mamurph