PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Detecting two touch screen presses

I had an idea a while back about detecting two finger presses on the screen at the same time (say for an on-screen NES or SNES controller?). It's based on the iPAQ averaging contact points on the screen.

If you could place the controller boxes so that if two were pressed the average/half-way position was uniquely defined, you could detect these two keypresses.

My questions are:

1) How workable would this be? Presumably you could do it with say a SNES emulator in landscape mode (say for detecting Y and B pressed at the same time).

2) Do all Pocket PCs average in this way, or will this not work on all Pocket PCs?
Most of the virtual pads simply assign the place between two buttons as both buttons at once.
I thought of EXACTLY the same thing a while ago, would always wonder if it worked. Interested in hearing what comes up. Tweaking it so it's accurate will be the hard part.
It seems almost all touchscreens average it. My Palm IIIxe did, my Jornada did, my Axim does.
Rather than the user hitting both buttons at once (2 hands), why not just add a third thats the same as both at once? That way you dont have to assume all screens use averages etc?

Just a thought.
Using 2 screen taps would allow for some interesting games and/or input methods however.
I believe that it is impossible because of the working mechanism of touch panel.

When you press on a touch panel the voltage between two panel change. if you press two points, the change of voltage is no longer linearly and there is no way to find which points are pressed.

You may check my previous post on working mechanism of touch panel.

http://forums.pocketmatrix.com/viewtopi ... highlight=
I believe that it is impossible because of the working mechanism of touch panel.

When you press on a touch panel the voltage between two panel change. if you press two points, the change of voltage is no longer linearly and there is no way to find which points are pressed.

You may check my previous post on working mechanism of touch panel.

http://forums.pocketmatrix.com/viewtopi ... highlight=
Yes, but the point is that if there's a button in the center, between two other buttons, and that button is pressed, then it can be assumed that the two other buttons were pressed.

No, it's not perfect.
It's also not perfect because you have no idea how far away the points are... I'll make up a crappy diagram:

p2 p1 C p1 p2

p1 and p2 are each sets of 2 points (the 2 p1s go together, as do the two p2s) and C is (presumedly) where the PPC would read as the input. As you can see, tapping at either p1 or p2 would result in C lying in the same place, which would be a big problem in trying to determine where the two places you tapped were.
Michael W wrote:
It's also not perfect because you have no idea how far away the points are... I'll make up a crappy diagram:

p2 p1 C p1 p2

p1 and p2 are each sets of 2 points (the 2 p1s go together, as do the two p2s) and C is (presumedly) where the PPC would read as the input. As you can see, tapping at either p1 or p2 would result in C lying in the same place, which would be a big problem in trying to determine where the two places you tapped were.


It's actually worse than that (draw any radius circle round the read point and pick two diagonally opposite points)

However don't you think that, at least for very simple games with 3 or 4 buttons only, it could work, at long as long as you were very ingenius with the button placings?
I think that it's already been done in PocketNES that I know of. Press inbetween the two buttons and you get both button's pressed at the same time.