| yes i no those tuts dont help at all.... well i have a menu and i have a backgound blit to the screen and i need to do this sceCtrlReadBufferPositive(&pad, 1);
blitAlphaImageToScreen(0, 0, 480, 272, background4, 0, 0);
if(pad.Buttons & PSP_CTRL_UP) {
if(selComponent > 0) {
selComponent--;
}
for(i=0; i<10; i++) {
sceDisplayWaitVblankStart();
}
} else if(pad.Buttons & PSP_CTRL_DOWN) {
if(selComponent < 3) {
selComponent++;
}
for(i=0; i<10; i++) {
sceDisplayWaitVblankStart();
}
}
sprintf(filler, "Start");
if(selComponent == 0) {
printTextScreen(226, 130, filler, shadowColorH);
printTextScreen(225, 130, filler, highlightColor);
}
else {
printTextScreen(226, 130, filler, shadowColorD);
printTextScreen(225, 130, filler, dimmedColor);
}
sprintf(filler, "Options");
if(selComponent == 1) {
printTextScreen(220, 140, filler, shadowColorH);
printTextScreen(219, 140, filler, highlightColor);
}
else {
printTextScreen(220, 140, filler, shadowColorD);
printTextScreen(219, 140, filler, dimmedColor);
}
sprintf(filler, "Credits");
if(selComponent == 2) {
printTextScreen(220, 150, filler, shadowColorH);
printTextScreen(219, 150, filler, highlightColor);
}
else {
printTextScreen(220, 150, filler, shadowColorD);
printTextScreen(219, 150, filler, dimmedColor);
}
sprintf(filler, "Exit");
if(selComponent == 3) {
printTextScreen(226, 160, filler, shadowColorH);
printTextScreen(225, 160, filler, highlightColor);
}
else {
printTextScreen(226, 160, filler, shadowColorD);
printTextScreen(225, 160, filler, dimmedColor);
}
if(pad.Buttons & PSP_CTRL_CROSS){
if(selComponent == 0) {
break;
}
}
if(pad.Buttons & PSP_CTRL_CROSS){
if(selComponent == 1) {
while(1){
blitAlphaImageToScreen(0, 0, 480, 282, background1, 0, 0);
flipScreen();
sceCtrlReadBufferPositive(&pad, 1);
if(pad.Buttons & PSP_CTRL_CIRCLE){
break;
}
}
}
}
if(pad.Buttons & PSP_CTRL_CROSS){
if(selComponent == 2) {
while(1){
blitAlphaImageToScreen(0, 0, 480, 282, background2, 0, 0);
flipScreen();
sceCtrlReadBufferPositive(&pad, 1);
if(pad.Buttons & PSP_CTRL_CIRCLE){
break;
}
}
}
}
if(pad.Buttons & PSP_CTRL_CROSS){
if(selComponent == 3) {
sceKernelExitGame();
}
}
for(i=0; i<1; i++) {
sceDisplayWaitVblankStart();
}
} |