Jump to content

Problem reading touchscreen coordinates [noob]


milkmans_son

Recommended Posts

Hi everyone,

 

I'm encountering a strange problem with the reading of the touchscreen coordinates: I expected the values for x to range from 0 to 256 and for y from 0 to 192 (to match the pixel coordinates). Thats what's implied by this tutorial: http://www.dev-scene.com/NDS/Tutorials_Day_3#Touching_things (by the line VRAM_A[touch.px + touch.py * 256] = rand(); )

 

However, when I run the example the coordiantes lie between 0/0 (upper left) and 3570/3330 (lower right). Am I supposed to scale the coordinates? Or do I have to modify the "Calibration"-Segment in the dualis.ini (if so: how?)?

 

Thanks for your advice!

 

BTW: Im using dualis 20.4 and deviktPro 1-4-4.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...