I just finished updating my code to work with the newest devkitARM + libnds, but now when I run my game the X and Y Buttons and Touch Screen are unresponsive. Everything else works the way it used to.
I'm testing on an R4 and MMD_CF. Please Help.
X,Y buttons and Touch Screen Unresponsive in New devkitARM
-
- Posts: 7
- Joined: Mon Oct 06, 2008 4:42 pm
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: X,Y buttons and Touch Screen Unresponsive in New devkitARM
Please don't capitalise randomly. Your post has been edited with the correct terminology.
- devkitPro is a vendor, not a toolchain, we provide tools for ARM, PPC and PSP.
- devkitARM is a generic ARM cross compiler, the DS is just one of many targets it supports.
- the correct capitalisation is as follows, devkitPro, devkitARM, devkitPPC & devkitPSP.
- If you're currently using a custom ARM7 binary then you'll probably be better off moving to a standard arm9 only template.
- Check through the examples for how input is read there.
-
- Posts: 7
- Joined: Mon Oct 06, 2008 4:42 pm
Re: X,Y buttons and Touch Screen Unresponsive in New devkitARM
Thanks for your reply. I've looked at the new examples and also Jaeden Amero's updated "Introduction to Nintendo DS Programming", but I can't see what I am doing wrong. My input and sprite code is based on Jaeden Amero's code, and my background code is based on a drunkencoders example for loading bitmaps. I updated my code and makefile using Jaeden Amero's
examples. I have noticed something new though. When my game starts up I display a splash screen and prompt you to either touch the screen or press start, and then it takes you to a second splash screen. Now, when my game starts it registers a screen touch and goes to the second splash screen, but the touch screen become unresponsive after that. (update) I just found out that if I ask for an X or Y button press at my first splash screen it immediately registers an X or Y press and goes to the second splash screen, and then X and Y don't work after that. So basically after the first call to scanKeys(), my first call to keysDown() returns an X, Y, and touch screen press at the same time.
examples. I have noticed something new though. When my game starts up I display a splash screen and prompt you to either touch the screen or press start, and then it takes you to a second splash screen. Now, when my game starts it registers a screen touch and goes to the second splash screen, but the touch screen become unresponsive after that. (update) I just found out that if I ask for an X or Y button press at my first splash screen it immediately registers an X or Y press and goes to the second splash screen, and then X and Y don't work after that. So basically after the first call to scanKeys(), my first call to keysDown() returns an X, Y, and touch screen press at the same time.
-
- Posts: 7
- Joined: Mon Oct 06, 2008 4:42 pm
Re: X,Y buttons and Touch Screen Unresponsive in New devkitARM
I solved my problem. When I removed the following lines that were in my
old code the problem went away:
irqInit();
irqEnable(IRQ_VBLANK);
Thank you. I didn't notice that had changed.
old code the problem went away:
irqInit();
irqEnable(IRQ_VBLANK);
Thank you. I didn't notice that had changed.
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests