From: Gorka Guardiola <paurea@lsub.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] cooked mouse mode.
Date: Fri, 14 Jan 2005 14:57:50 +0100 [thread overview]
Message-ID: <22cd944622efe4e4f531903d54aad6e8@plan9.escet.urjc.es> (raw)
In-Reply-To: <cb4dc1e8bebc589875941c3e455cf560@vitanuova.com>
>
> just IMHO, i'd say that having the same channel produce two different
> types of event is at least as open to confusion as having a new
> channel and ignoring the old one.
>
> by setting cooked mode, you are essentially changing the type of the
> channel. in the future you might wish cooked mode events to contain
> other fields (for instance a "click count" to cope with more than
> double mouse clicks), in which case your suggested interface would not
> be sufficient - you'd have to change the definition of the Mouse
> structure, which doesn't seem right.
>
> i'm not objecting to putting the declarations in mouse.h in the
> slightest; just that i don't think it's necessary to alter the old
> interface.
>
> doing it this way also opens the possibility of having various
> different kinds of mouse cookery without affecting the original
> interface or code in the slightest.
The set is more or less complete. There is already a click count in it
(see the MCHORDB macro). I don't think it can get much more complete than
it is now (though it may be shortsightedness on my part). Anyway, I don't think
you will want different ways of cooking the mouse for each application
more than a central one, because it can make things difficult to understand.
You can get lost asking how is this application cooking the mouse?
G.
next prev parent reply other threads:[~2005-01-14 13:57 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-13 16:30 Gorka Guardiola
2005-01-13 20:59 ` rog
2005-01-14 1:06 ` Gorka Guardiola Múzquiz
2005-01-14 13:57 ` rog
2005-01-14 13:54 ` Fco. J. Ballesteros
2005-01-14 14:05 ` rog
2005-01-14 14:02 ` Fco. J. Ballesteros
2005-01-14 14:26 ` rog
2005-01-14 14:24 ` Gorka Guardiola
2005-01-14 14:58 ` rog
2005-01-14 14:57 ` Fco. J. Ballesteros
2005-01-14 14:59 ` Gorka Guardiola
2005-01-14 15:09 ` rog
2005-01-14 15:06 ` Gorka Guardiola
2005-01-14 16:43 ` Rob Pike
2005-01-14 13:57 ` Gorka Guardiola [this message]
2005-01-14 14:18 ` Charles Forsyth
2005-01-14 14:06 ` Fco. J. Ballesteros
2005-01-14 14:12 ` Gorka Guardiola
2005-01-14 14:13 ` Gorka Guardiola
2005-01-14 14:15 ` Gorka Guardiola
2005-01-14 14:26 ` Charles Forsyth
2005-01-14 14:15 ` Fco. J. Ballesteros
2005-01-14 14:17 ` Gorka Guardiola
2005-01-14 14:24 ` Fco. J. Ballesteros
2005-01-14 14:38 ` Charles Forsyth
2005-01-14 14:28 ` Gorka Guardiola
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=22cd944622efe4e4f531903d54aad6e8@plan9.escet.urjc.es \
--to=paurea@lsub.org \
--cc=9fans@cse.psu.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).