From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: Handling touchscreen buttons Date: Tue, 25 Sep 2007 01:44:16 -0400 Message-ID: <200709250144.16495.dtor@insightbb.com> References: <20070923213913.15c12c3b.Kristoffer.ericson@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070923213913.15c12c3b.Kristoffer.ericson@gmail.com> Content-Disposition: inline Sender: owner-linux-input@atrey.karlin.mff.cuni.cz List-Help: List-Owner: List-Post: List-Unsubscribe: To: Kristoffer Ericson Cc: dmitry.torokhov@gmail.com, linux-input@atrey.karlin.mff.cuni.cz List-Id: linux-input@vger.kernel.org On Monday 24 September 2007, Kristoffer Ericson wrote: > Greetings, > > On my jornada7xx I have 4 buttons on the rightside of the screen (going from Y-low -> Y-high). They are part of the touchscreen. > Since they aren't usually used in normal X window handling I was thinking that I should have the driver detect if the touch happend on one of those buttons. > The general idea is that I could somehow export detection into /sys so that ordinary applications could make use of them. Example would be that touching one button could be scripted to start an xterm or anything else. > > Im interested to know if anyone has any examples or suggestion how to best accomplish this? > I'd just send KEY_PROG1 .. KEY_PROG4 events through the same input device you send the rest of touchscreen events. -- Dmitry