Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Hey all,
Just a quick question, so I know you can use waitpadup(); to wait for all buttons to be up, but how do you test if say A and only A has been depressed?
Thanks
Offline
This is how I do it. The smartDelay function is just runs any logic that needs to run every frame and runs a wait_vbl_done; afterwards.
if (joypad() & J_START){
while(joypad() & J_START){
smartDelay(1,FALSE);
}
holdScreen = FALSE;
}
Offline