View unanswered posts | View active topics It is currently Wed Jan 16, 2019 10:42 am

Reply to topic  [ 2 posts ] 
 Touch coordinates are always zeroed 
Author Message

Joined: Sat Jan 24, 2009 11:37 pm
Posts: 8
I'm getting an old game of mine compiling again against the latest libnds, the last one it was compiled with was 1.5.3. The problem I'm having is that touchRead() is always returning (0,0). I'm testing on a DSi with Unlaunch 1.7, booting it through hbmenu, and the older binary of my game as well as the latest touch examples work fine so it's not my hardware. I've taken the latest arm7 template.c and also updated my makefiles to match. Is there anything I could be missing?

Sat Oct 06, 2018 6:47 pm

Joined: Sat Jan 24, 2009 11:37 pm
Posts: 8
After some investigation it looks like there is an issue with the templates\combined example, as when compiling that and running it on my DSi I see that the raw touch coordinates get set but not the pixel coordinates. The 3 touch examples in input\Touch_Pad work fine when compiled and run. Perhaps there has been some touch initialisation changes that hasn't made it's way in to the combined template example?

EDIT: Looks like it's as simple as adding touchInit() to the arm7 code, now everything is working :)

Sat Oct 06, 2018 11:34 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at Fast, secure and Free Open Source software downloads