lkml.org 
[lkml]   [1996]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: A generic pointer protocol

hello

I followed the discussion about this "generic" protocol.
It seems there is a lot of talk about non-generic choices
(cf. pressure). Does the packet need to have a fixed length ?
I don't think so. We could have a config struct that can
describe a pointing device capabilities. For example,
a pressurized-pen tablet (!) :

The config :
name,min value,max value

{
{"x",0,6000},
{"y",0,4000},
{"pressure",0,15}
}

When the application (which has to be enhanced a bit) start
up, it just look if there is a "pressure" field in the config.
If yes, then the *application* will know that the 3rd field is
the pressure field, and the the value can be between 0 and 15.

"x" and "y" are nearly always present

Please comment

alex

--
\\-----------------------------------------------------------\\
// Alexandre Maret -- Linux : The choice of a GNU generation //
\\ amaret@infomaniak.ch -- http://www.infomaniak.ch/~amaret \\
//-----------------------------------------------------------//

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.060 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site