#40954 - KoaM - Sat Apr 23, 2005 11:29 pm
I can't seem to find any docs on how to work with the touch screen, is there any info on this yet?
#40959 - tepples - Sun Apr 24, 2005 12:27 am
I'm under the impression that some of the demos included with ndslib can read position and pressure from the touch screen.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#40989 - mymateo - Sun Apr 24, 2005 3:56 am
I'm under the impression (having tried a "pressure" demo on my DS w/ PassMe) that the pressure aspect doesn't work worth crap, that's just my opinion. With the stylus, the pressure remained pretty much constant. With my finger, it said high pressure when I barely touched, and low pressure when I pushed hard.
However, I will also admit that the demo could have just been poorly written. Or that I am a retarded monkey on acid, and I think I'm people.
In other words, don't get your hopes up too high for writing an awesome demo featuring pressure sensing.
#40995 - tepples - Sun Apr 24, 2005 4:29 am
In practice, the pressure sensing is useful mostly for determining when you have a solid fix on the position of the touch. This is necessary because the lightest of touches will provide very noisy position data.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#41007 - dovoto - Sun Apr 24, 2005 5:38 am
It is not pressure...it is area of contact...no matter how HARD you press you will get the same reading. It only varies with area touched. If you have a very soft stylus I suppose you could corelate area to pressure in some manner.
As for reading the touch pad in general it can only be done via the arm7 whcih the wike ( www.bottledlight.com/ds ) explains or you can let the default arm7 bin in ndslib do it for you and just read the raw x and y value from the IPC struct.
_________________
www.drunkencoders.com
#41010 - mymateo - Sun Apr 24, 2005 6:07 am
I know it's area based, and it you think about it (in the case of using your finger), it DOES matter how hard you press. The harder you press, the more of your finger will make contact and press on the screen. This, however, is just a technicality.
#41025 - Darkain - Sun Apr 24, 2005 8:46 am
dovoto wrote: |
It is not pressure...it is area of contact...no matter how HARD you press you will get the same reading. It only varies with area touched. |
not completely true... its a combination of both pressure AND area. if you check the raw values, if you press lightly, the numbers are different then pressing harder, which is differnt from using your fingers, which is different from using 2 touch points at once. there is all sorts of stuff that seem to effect the two Z values. :)
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS