From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiangfu Liu Subject: Re: (matrix_keypad driver) Re: qi_lb60_keypad driver question? Date: Wed, 09 Sep 2009 16:46:58 +0800 Message-ID: <4AA76B82.2080200@gmail.com> References: <4A819D39.2040006@qi-hardware.com> <20090812024620.E4E10526EC9@mailhub.coreip.homeip.net> <4A9AA392.4060301@gmail.com> <20090901021034.6117F526EA5@mailhub.coreip.homeip.net> <4AA75AB9.60406@gmail.com> <20090909090955.1473A526EC9@mailhub.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-yw0-f173.google.com ([209.85.211.173]:60888 "EHLO mail-yw0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbZIIIrI (ORCPT ); Wed, 9 Sep 2009 04:47:08 -0400 Received: by ywh3 with SMTP id 3so6008950ywh.22 for ; Wed, 09 Sep 2009 01:47:11 -0700 (PDT) In-Reply-To: <20090909090955.1473A526EC9@mailhub.coreip.homeip.net> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: linux-input@vger.kernel.org Dmitry Torokhov wrote: > Hi Xiangfu, > > On Wed, Sep 09, 2009 at 03:35:21PM +0800, Xiangfu Liu wrote: >> Dmitry Torokhov wrote: >>> Hi, >>> >>> On Mon, Aug 31, 2009 at 12:06:42AM +0800, Xiangfu Liu wrote: >>>> Hi >>>> now the keypad in Ben NanoNote[1] is work. problem is I don't know >>>> how to write the special assemble key of matrix_key driver. some kind >>>> of 'SHIFT', like the red key in [2]. when I press the 'RED UP POINT' >>>> + 'W' = '@' >>>> >>> Historically our KEY_* definitions did not include defines for symbols >>> like '@' because they do not have a dedicated key but rather being >>> produced as a combination of a primary key + modifier; the mapping is >>> done either in console driver or in X. >>> >> thanks Dmitry. >> can you point me which file I need look into, > > I believe you already discovered loadkeys and the keyboard maps that are > used in console mode. I believe you just need to make your 'up point' > key a modifier and make sure that 'W' with that particular modifier > emits '@'. > the keycode 94 is the 'up point' the loadkeys always like: keycode 94 = Compose compose 'w' 'w' to '@' it's take three keys not two. I must press 'up point' + 'w' + 'w' then it's will display '@'. not 'up point' + 'w' = '@' thanks for reply. -- Xiangfu Liu Email: xiangfu at qi-hardware dot com Web: http://www.qi-hardware.com