#118031 - captaincabinets - Fri Feb 09, 2007 6:18 am
Ahoy. I am having troubles with a simple program I'm trying to code. It reads the button presses using
scanKeys()
if (keyHeld() & KEY_X) etc.
Now this works fine on an emulator, but when I put it on my ds lite, it acts as if the KEY_X bit is always set, ie, x is constantly pressed. I tried re-writing it so it gets the special keys from
~IPC->buttons & 1
but it is exactly the same result: works fine on the emulator (dualis), but not on the ds lite.
I am using the standard ARM7 code that comes with devkitpro.
Any suggestions? Does the lite's GBA architecture differ from the normal ds', ie are the x,y,touch registers in a different location?
Any help appreciated.
scanKeys()
if (keyHeld() & KEY_X) etc.
Now this works fine on an emulator, but when I put it on my ds lite, it acts as if the KEY_X bit is always set, ie, x is constantly pressed. I tried re-writing it so it gets the special keys from
~IPC->buttons & 1
but it is exactly the same result: works fine on the emulator (dualis), but not on the ds lite.
I am using the standard ARM7 code that comes with devkitpro.
Any suggestions? Does the lite's GBA architecture differ from the normal ds', ie are the x,y,touch registers in a different location?
Any help appreciated.