From: Till Straumann <Till.Straumann@TU-Berlin.de>
To: "Michel Dänzer" <michel@daenzer.net>
Cc: linuxppc-dev@lists.linuxppc.org, vojtech@suse.cz
Subject: Re: [patch] ignore trackpad/mouse while typing
Date: Mon, 02 Dec 2002 21:03:44 -0800 [thread overview]
Message-ID: <3DEC3B30.9030701@TU-Berlin.de> (raw)
In-Reply-To: 1038880026.17922.208.camel@thor
Michel Dänzer wrote:
> On Fre, 2002-11-29 at 02:34, Till Straumann wrote:
>
>
>>+ if ( jiffies - mouse_holdoff_last_jiffie < mouse_holdoff_jiffies )
>>+ return;
>>+ /* Note: we could lose mouse events when the jiffie counter rolls over... */
>
>
> I think the difference is always correct.
>
>
No: if no key is pressed for (any integer multiple of) 2^32 jiffies then
mouse events are ignored during a short period of time following the
rollover ;-)
[ i.e. the rollover of the difference, not the jiffies; the true
relation being
(jiffies - mouse_holdoff_last_jiffie) % 2^32 < mouse_holdoff_jiffies
]
Anyways: the patch has another problem: the trivial version cannot deal
with
- emulated mouse buttons (ignored because input_event() first receives
a key event which is sent to the keyboard handler who remaps it to a
mouse/button event to be ignored since it happens shortly after the
key event triggering it)
- 'modifiers' (Shift, Ctrl & friends). All keys seem to be
'auto-repeated' by the input driver resulting in repeated
key events while a modifier is pressed, hence causing the trivial
patch to ignore mouse events while a modifier key is held down.
I'm working on an improved version supporting a (configurable but
reasonably defaulted) list of keys who are to be considered 'modifiers'.
-- Till
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-12-03 5:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-29 1:34 [patch] ignore trackpad/mouse while typing Till Straumann
2002-11-29 5:31 ` Ethan Benson
2002-12-03 1:47 ` Michel Dänzer
2002-12-03 5:03 ` Till Straumann [this message]
2003-01-25 17:47 ` Vojtech Pavlik
2003-01-25 19:04 ` Benjamin Herrenschmidt
2003-01-25 20:58 ` George Staikos
2003-01-25 21:04 ` Vojtech Pavlik
2003-01-25 21:25 ` Benjamin Herrenschmidt
2003-01-25 18:04 ` Till Straumann
2003-01-26 9:59 ` Vojtech Pavlik
2003-01-25 21:29 ` Vojtech Pavlik
2003-01-27 19:16 ` Franz Sirl
2003-01-27 19:25 ` Vojtech Pavlik
2003-01-27 21:33 ` Till Straumann
2003-01-27 21:49 ` Franz Sirl
2003-01-27 22:00 ` Vojtech Pavlik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DEC3B30.9030701@TU-Berlin.de \
--to=till.straumann@tu-berlin.de \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=michel@daenzer.net \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.