Re: [9fans] Re: 9phone

"Dave MacFarlane" <[email protected]> Mon, 24 Mar 2025 09:53:48 -0400
Newsgroups gmane.os.9front.general,gmane.os.plan9.general
Message-ID <[email protected]>
Quoth Dan Cross <[email protected]>:

> The Bitsy kernel (for the Compaq iPaq) supported the touch screen on

> that device.  I don't recall that it worked very well, but it did

> work.  You may look at using that as a starting point for the touch

> panel part.

>



The touchscreen is the easiest part, since mousein can already take

absolute coordinates.  I've already written that part and use the

volume keys as button 2&3.  It works okay.



I've been using bitsy/keyboard -n with the touch screen and it works

fine for bootstrapping but not well by modern standards.  It's easy to

fat-finger things because there's too many keys on screen and swipe

input would be nice.  It also won't disable itself when the proximity

sensor detects something close once that's exposed.



> 

> For many of the sensors you may be in more or less uncharted

> territory; the touch screen may look something like the Bitsy.  My

> sense is that as long as you emit some reasonable data from those

> devices you're ok, as presumably most of the interesting processing

> would happen in userspace.  If it were me, I'd start prototyping with

> what you have above, and then fine tune your data formats as you get a

> sense for what you really need.

> 

>         - Dan C.



The "most of the interesting processing would happen in userspace" bit

is why I'm considering returning the raw sensor values rather than

doing the work of converting to metric/real world values from the

driver but I could be convinced that's a bad idea.



- Dave