From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Bader Subject: Re: linux kernel HID problem with Saitek X52 Pro Flight System Date: Tue, 15 Dec 2009 14:17:27 +0100 Message-ID: <4B278C67.5050505@canonical.com> References: <4B21308F.5070304@canonical.com> <1260541128.3656.6.camel@bede> <4B225601.3080002@canonical.com> <1260572529.3656.12.camel@bede> <4B22F952.6070001@iki.fi> <20091212044425.GA2956@core.coreip.homeip.net> <4B261412.6090409@canonical.com> <20091214173631.GC2373@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from adelie.canonical.com ([91.189.90.139]:45219 "EHLO adelie.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759555AbZLONRi (ORCPT ); Tue, 15 Dec 2009 08:17:38 -0500 In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Jiri Kosina Cc: Dmitry Torokhov , Anssi Hannula , Tim Cole , Sergey Kolesnikov , linux-input@vger.kernel.org Jiri Kosina wrote: > On Mon, 14 Dec 2009, Dmitry Torokhov wrote: > >>> This might be an overly naive approach (or call it thinking loudly)... >>> It would probably break a lot of stuff when the JOYSTICK/TRIGGER block >>> moved to the 0x210 region, but would it be a solution to have a block >>> of additional joystick buttons there and check on assigning buttons to >>> a joystick, whether it traverses over to GAMEPAD and in that case skip >>> to the additional block? >> That's what we have to do I guess... I wonder how many keycodes will we >> need so we won't have to split the region again? Will they come up with >> 70 buttons next time? > > Yup, I am not able to come up with anything more clever either. > > I can do that easily ... any suggestions for button names? :) > #define BTN_TRIGGER_HAPPY01 0x210 ... #define BTN_TRIGGER_HAPPY40 0x238 :-P Assuming 40 additional buttons should be crazy enough (but I know this has been said before about other things). -Stefan