#172711 - sylvestersteele - Fri Feb 26, 2010 4:23 am
Hi guys,
I am modifying the homebrew frambuffer tutorial http://double.co.nz/nintendo_ds/nds_develop2.html such that the red rectangle moves to the point that was touched.
Now I've got the example as is to work just fine. But, the touchRead in my main while loop never reads the touched value- always zero. If I put my drawing routines in the while loop (which obviously causes the rectangle to move along really fast) and remove the InitInterruptHandler(); etc.- then a touch is atleast detected. But if I put the InitInterruptHandler(); back in- again no touch.
I was going through previous posts- and I got the feeling that such behaviour is expected. However- those posts did not say how this problem could be solved.
Any ideas?
Thanks,
Sylvester
I am modifying the homebrew frambuffer tutorial http://double.co.nz/nintendo_ds/nds_develop2.html such that the red rectangle moves to the point that was touched.
Now I've got the example as is to work just fine. But, the touchRead in my main while loop never reads the touched value- always zero. If I put my drawing routines in the while loop (which obviously causes the rectangle to move along really fast) and remove the InitInterruptHandler(); etc.- then a touch is atleast detected. But if I put the InitInterruptHandler(); back in- again no touch.
I was going through previous posts- and I got the feeling that such behaviour is expected. However- those posts did not say how this problem could be solved.
Any ideas?
Thanks,
Sylvester