Page 1 of 2
touch simultaneously with 2 styluses?

Posted:
Sep 9, 2004 @ 3:03pm
by andru123
Hi, is there a documentation on the touch pad API?
I want to work on PDA with 2 stylus simultaneously (at the same time). Is it something that touchscreen hardware / Win API can handle or it is restricted to a 1 touch point at a time?

Posted:
Sep 9, 2004 @ 3:07pm
by angedelamort
It's hardware dependant. I'm pretty sure all harware allow only one stylus at the time.

Posted:
Sep 9, 2004 @ 3:12pm
by andru123
Asus 620
Could someone please post any directions where to find documentation of what is possible with hardware?

Posted:
Sep 9, 2004 @ 8:46pm
by andyclap
The touchscreen on most (if not all) PPC devices is a simple 2-axis device, capable of returning where a single stylus is positioned.
However I've been thinking about multiple stylus (styli?? hmm I'll stick with styluses) recently for handling two finger typing on a software keyboard, and think it'd be perfectly possible to get a good estimation of two styluses' positions in code, providing you're not expecting them both to move at the same time, and assmung that two presses, even very close togther in time, will not be exactly concurrent. With current touchscreens, two simultenous points of contact on the touchscreen simply returns the midpoint between them.
Just thinking outloud here... We get a sort-of state machine:
Start in "no stylus" mode:
- mousedown, treat this as the first stylus mousedown, and enter "one stylus" mode
In "one stylus" mode:
- mouseup, treat this as the first stylus mouseup
- mousemove, check if the speed of the move (i.e. distance/time between messages) is greater than a threshold value. If it's not, it's a regular single stylus mousemove. If it is, treat this as the second stylus' mousedown. To get the position, add double the distance from the fist stylus' position, and enter "two styluses" mode
In "two styluses" mode:
- Mouseup, mouseup for both styluses
- Mousemove, those below the speed threshold are treated as the second stylus' mousemoves, again doubling the distance from the first stylus' position. If one above the threshold is received, whichever stylus position it is nearest is treated as the single remaining stylus, the other stylus does its mouseup processing, and we return to "one stylus" mode.
This could be quite an interesting technique, I can probably think of a few applications other than just two-finger typing. You could even extend it to more than two presses, although there'd probably be too much movement, and it might be a bit fiddly on such small screens.

Posted:
Sep 9, 2004 @ 9:17pm
by refractor
Styli and styluses are both <a href="http://dictionary.reference.com/search?r=2&q=styli">correct plurals</a>.

Posted:
Sep 9, 2004 @ 9:27pm
by David Horn
This is kinda off-topic, but it always surprises me how small a Pocket PC screen actually is. It looks a reasonable size on the device, but when you look at a screen protector, you think, "Blimey, that's small!"

Posted:
Sep 10, 2004 @ 12:12am
by andyclap

Posted:
Sep 10, 2004 @ 6:49am
by andru123

Posted:
Sep 10, 2004 @ 12:02pm
by andyclap
Hi, yes it's a physical limitation. Here's a useful page with an overview of the different touchscreen technologies - I've never seen a PPC with anything but a resistive touchscreen.
http://www.manufacturing.net/ctl/articl ... 2F1%2F1998
Interestingly this article explains the little dots you can see if you look closely - they're to keep the two conductive layers separate except when pressed.
In addition to the article, I presume the hardware samples the resistance across the x axis then across the y axis in rapid succession to determine the coordinates.

Posted:
Sep 10, 2004 @ 7:57pm
by sponge
In theory, it would be possible to write a massive hack that detects how much movement there is when you press a second item, however I've been told it's not a constant, especially across devices.
andyclap: On my 3955, in sunlight you can see the dots as clear as day.

Posted:
Sep 15, 2004 @ 9:10am
by andru123

Posted:
Sep 15, 2004 @ 3:09pm
by mlepage

Posted:
Sep 15, 2004 @ 6:04pm
by Jinks

Posted:
Sep 15, 2004 @ 8:56pm
by Dan East

Posted:
Sep 15, 2004 @ 9:06pm
by Jinks