Logistics Of Touchscreen Input For Emulated Software


Swiss_Cheeseman

SwissCM
Joined
Mar 6, 2003
Messages
873
Age
39
The touch screen for the Pandora opens up some interesting possibilities for homebrew, mostly for emulators. For something like Basillisk II (a 68000 Mac emulator) having a touchscreen for mouse input would be very handy and quite easy to implement due to MacOS having standardised input.

For DOS games it's a different story. I know DOSBox (or at least the CVS versions of it) try to have absolute mouse positioning in windowed mode, but it's rarely accurate. The only other option is relative which is hardly a good alternative. There is two solutions to this that I can think of and both only work on a per-application basis.

1. Hook into and grab the positioning data straight from the software. This requires more technical knowledge and would not be universal at all and may not work with different versions of the same application, however it would be very accurate.

2. Use a calibration utility to measure mouse acceleration, speed and position. This could be done by the end user and would work with different versions of the same software (provided the mouse code didn't change), on the downside is that it would be fiddly and inaccurate at times.

Are there any other ways that are practical?
 
TS lib is your friend :). It will work with any TS device that uses the input layer (which I assume the Pandora does) and provides a interface for getting calibrated values with pen-up/pen-down events.
You would of course still need to modify your emulator to make use of the information but it makes the getting of data easy and free form worries of changes in drivers :).
 
By the way, is there any info about the type of Touchscreen used for the Pandora? A "Resistive" or a "Capacitive" one? I don't know much about this but afaik the Capacitive is the more modern one.
 
Most likly resistitve considering that it does not support two touchs at the same time which is a capacitive touchscreen feature.
 
Not only capacitive displays can support multitouch, and they have the drawback of not being able to use gloves or a stylus.
 
The Pandora touchscreen is resistive. Resistive touchscreens cannot do multitouch, but they can do a half-assed pressure sensing.

Resistive screens work by having two electrically conductive sheets of plastic sitting on top of the screen, but not quite touching each other. When you touch the screen you are pressing the top layer down so it contacts the lower layer. Based on the resistance measured between the upper and lower layers, the device can calculate the location of contact. The down side is that the resistance can be thrown off by things like heat, moisture and time, so occasional recalibration is necessary.

Pressing harder on the top layer will cause more of it to contact the lower layer, and this will change the resistance of the connection. Based on this change, the device can infer the ammount of pressure applied. There are significant inaccuracies in this method, though. For instance, a light tap with something wide and soft (like a fingertip) will cause a larger contact patch then even a very hard tap by something small and hard (like a stylus). This makes useful pressure sensitivity much more problamatic, though not impossible.
 
fusion_power said:
Aha.
Things like scrolling with the finger/stylus sliding over the screen shouldnt be a problem, right?

That's completely a software issue.
 
Last edited by a moderator:
Tinnus said:
fusion_power said:
Aha.
Things like scrolling with the finger/stylus sliding over the screen shouldnt be a problem, right?

That's completely a software issue.

Nice. So let's hope, the OS/Firmware/Software Devs don't forget the "LOOK AND FEEL" and the usability of the Pandora Software. :)
 
Last edited by a moderator:
I've heard it will be an inductive touchscreen. It will guess where you are going to touch next ;)

(I hope someone gets the EE joke).
 
Just to confirm. It is a resistive touch screen nicely abstracted behind TSLib with TSLib doing filtering and some other cool stuff and outputting as a /dev/input/event* device.

You can of course bang the hardware if you must but there is little or no point ;).

"Gestures" are just a matter of coding appropriate support. Plenty of work being done on that in various projects outside the Pandora. "Gesture" input is common enough on resistive screens and has been around as long as I can remember just without the Apple "spin".

QUOTE
By the way, is there any info about the type of Touchscreen used for the Pandora? A "Resistive" or a "Capacitive" one? I don't know much about this but afaik the Capacitive is the more modern one.


Nope, they are just different for different applications. More modern does not come into it. Restive can be really quite accurate when using say a stylus. Capacitive by it's very nature is much more broad brush and 'approximate' if your using the human body as a power source ;).

Any more info needed?
 
DJWillis said:
Any more info needed?
Can you give out an exact model number? I'd like to have a more detailed look at it's specs. From what I've heard it's the same screen used in the Archos 605, but I can't find model numbers for it anywhere.
 
Last edited by a moderator:
This can be answered by people who have experience with devices using the same screen, but how sturdy is it? I want my pandora to last and last and last just like a duracell battery!
 
CyruzDraxs said:
DJWillis said:
Any more info needed?
Can you give out an exact model number? I'd like to have a more detailed look at it's specs. From what I've heard it's the same screen used in the Archos 605, but I can't find model numbers for it anywhere.


Model for the TS? It's just the standard TS that comes with the screen hooked up to an ADS7846 controller. I am not sure if the touch screens ever have specific model numbers.

Kyosys said:
This can be answered by people who have experience with devices using the same screen, but how sturdy is it? I want my pandora to last and last and last just like a duracell battery!
It's a little hard for me to comment as my development Pandora is a REALLY early one without a case so I can't say what it is like when mounted but the touchscreen seems very sturdy and it would take all the abuse your likely to chuck at it in normal use.

Mine has not marked at all in my testing and of course adding a screen protector is a good idea for that extra layer of protection but your starting with a very solid screen and TS combo.
 
Last edited by a moderator:
Chip said:
I'm certain the Pandora touchscreen is resistive. Resistive touchscreens cannot do multitouch, but they can do a half-assed pressure sensing.

Resistive screens work by having two electrically conductive sheets of plastic sitting on top of the screen, but not quite touching each other. When you touch the screen you are pressing the top layer down so it contacts the lower layer. Based on the resistance measured between the upper and lower layers, the device can calculate the location of contact. The down side is that the resistance can be thrown off by things like heat, moisture and time, so occasional recalibration is necessary.

Pressing harder on the top layer will cause more of it to contact the lower layer, and this will change the resistance of the connection. Based on this change, the device can infer the ammount of pressure applied. There are significant inaccuracies in this method, though. For instance, a light tap with something wide and soft (like a fingertip) will cause a larger contact patch then even a very hard tap by something small and hard (like a stylus). This makes useful pressure sensitivity much more problamatic, though not impossible.

Mmh... quite interesting... anybody knows if there's a way to implement this on Pandora?
 
Last edited by a moderator:
DJWillis said:
CyruzDraxs said:
DJWillis said:
Any more info needed?
Can you give out an exact model number? I'd like to have a more detailed look at it's specs. From what I've heard it's the same screen used in the Archos 605, but I can't find model numbers for it anywhere.


Model for the TS? It's just the standard TS that comes with the screen hooked up to an ADS7846 controller. I am not sure if the touch screens ever have specific model numbers.

Umm...I meant the LCD panel, not the touch layer. Sorry for not specifying.
 
Last edited by a moderator:
Well the first time i heard Pandora was getting a touchscreen, I knew it was gonna be good. Homebrew for the Nintendo DS was great with the both the screens! :)
 
anexanhume said:
I've heard it will be an inductive touchscreen. It will guess where you are going to touch next ;)

(I hope someone gets the EE joke).
Clever joke :p
 
Last edited by a moderator:
Back
Top