9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] cooked mouse mode.
Date: Fri, 14 Jan 2005 14:26:28 +0000	[thread overview]
Message-ID: <d3de444e0a2b0cd175eb4d03bdbf2eae@vitanuova.com> (raw)
In-Reply-To: <9f78f30e1a29903f8c6f43d685b83110@plan9.escet.urjc.es>

> Well, actually the plan was to get applications use the
> cooked mode; and get rid of the need for raw mode.

the nice thing about raw mode is that the relationship with what the
mouse is actually doing is beautifully simple and easy to explain.

"cooking" the mouse involves the application of a certain amount of
convention as to what sort of events one would like to see.

your convention assumes that applications are interested in clicking
and chording.

some applications might wish to know about other kinds of mouse
action, mouse gestures, or click-and-hold, perhaps.

or, as charles points out, one might wish to pre-filter events, for
example to remove redundant mouse-moved events or perhaps to integrate
input from another device.

it seems right to me that the mouse events arrive in
lowest-common-denominator form, and than can then be transformed by
the application into whatever form is most convenient for that
application.  (it's just a pity that the Channel* type in C can't be
parameterised with the type of the value it holds).

keeping the transformation function separate is more modular.  it's
just the kind of reason that the channel-based model was used, surely?



  reply	other threads:[~2005-01-14 14:26 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 [this message]
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
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=d3de444e0a2b0cd175eb4d03bdbf2eae@vitanuova.com \
    --to=rog@vitanuova.com \
    --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).