This site is no longer active and is available for archival purposes only. Registration and login is disabled.

touch simultaneously with 2 styluses?


touch simultaneously with 2 styluses?

Postby andru123 » Sep 9, 2004 @ 3:03pm

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?
andru123
pm Member
 
Posts: 6
Joined: Sep 9, 2004 @ 2:51pm


Postby angedelamort » Sep 9, 2004 @ 3:07pm

It's hardware dependant. I'm pretty sure all harware allow only one stylus at the time.
User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby andru123 » Sep 9, 2004 @ 3:12pm

Asus 620

Could someone please post any directions where to find documentation of what is possible with hardware?
andru123
pm Member
 
Posts: 6
Joined: Sep 9, 2004 @ 2:51pm


Postby andyclap » Sep 9, 2004 @ 8:46pm

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.
User avatar
andyclap
pm Member
 
Posts: 62
Joined: Aug 5, 2002 @ 1:32pm


Postby refractor » Sep 9, 2004 @ 9:17pm

Styli and styluses are both <a href="http://dictionary.reference.com/search?r=2&q=styli">correct plurals</a>.
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby David Horn » Sep 9, 2004 @ 9:27pm

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!"
Crosswind technique: "Using your peripheral vision, react to body movements, gasps, groans, and shouts from the other side of the cockpit, and always remember that it's better to be lucky than good."
User avatar
David Horn
<b>The Boss</b>
 
Posts: 1867
Joined: Feb 17, 2002 @ 2:10pm
Location: PocketGamer Towers (New York, Paris, Leeds)


Postby andyclap » Sep 10, 2004 @ 12:12am

User avatar
andyclap
pm Member
 
Posts: 62
Joined: Aug 5, 2002 @ 1:32pm


Postby andru123 » Sep 10, 2004 @ 6:49am

andru123
pm Member
 
Posts: 6
Joined: Sep 9, 2004 @ 2:51pm


Postby andyclap » Sep 10, 2004 @ 12:02pm

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.
User avatar
andyclap
pm Member
 
Posts: 62
Joined: Aug 5, 2002 @ 1:32pm


Postby sponge » Sep 10, 2004 @ 7:57pm

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.
holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby andru123 » Sep 15, 2004 @ 9:10am

andru123
pm Member
 
Posts: 6
Joined: Sep 9, 2004 @ 2:51pm


Postby mlepage » Sep 15, 2004 @ 3:09pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Jinks » Sep 15, 2004 @ 6:04pm

The stylus is mightier than the pen!
jinks
User avatar
Jinks
pm Member
 
Posts: 281
Joined: Feb 21, 2004 @ 1:57am
Location: Croydon, UK


Postby Dan East » Sep 15, 2004 @ 8:56pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Jinks » Sep 15, 2004 @ 9:06pm

The stylus is mightier than the pen!
jinks
User avatar
Jinks
pm Member
 
Posts: 281
Joined: Feb 21, 2004 @ 1:57am
Location: Croydon, UK


Next

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron