* Handling touchscreen buttons
@ 2007-09-24 4:39 Kristoffer Ericson
2007-09-25 5:44 ` Dmitry Torokhov
0 siblings, 1 reply; 3+ messages in thread
From: Kristoffer Ericson @ 2007-09-24 4:39 UTC (permalink / raw)
To: dmitry.torokhov; +Cc: linux-input
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?
Best wishes
Kristoffer Ericson
Maintainer : HP7xx & HP6xx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Handling touchscreen buttons
2007-09-24 4:39 Handling touchscreen buttons Kristoffer Ericson
@ 2007-09-25 5:44 ` Dmitry Torokhov
2007-09-25 18:34 ` Kristoffer Ericson
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2007-09-25 5:44 UTC (permalink / raw)
To: Kristoffer Ericson; +Cc: dmitry.torokhov, linux-input
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Handling touchscreen buttons
2007-09-25 5:44 ` Dmitry Torokhov
@ 2007-09-25 18:34 ` Kristoffer Ericson
0 siblings, 0 replies; 3+ messages in thread
From: Kristoffer Ericson @ 2007-09-25 18:34 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Kristoffer Ericson, dmitry.torokhov, linux-input
On Tue, 25 Sep 2007 01:44:16 -0400
Dmitry Torokhov <dtor@insightbb.com> wrote:
> 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.
>
Great idea, big thanx.
> --
> Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-25 18:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-24 4:39 Handling touchscreen buttons Kristoffer Ericson
2007-09-25 5:44 ` Dmitry Torokhov
2007-09-25 18:34 ` Kristoffer Ericson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.