Please help support the site by donating at the link below.https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8ZRU34U47BESW
no one care? test it out and give some feedback please .sry4DP
did i post something i can't remember and why are you sorry
its not about U 4DP= for double post EDIT:If someone send me mp3s or wavs for buttons like "left trigger" "circle" i can make it speak.
#include <pspctrl.h>#include <pspkernel.h>#include <pspdebug.h>#include <pspgu.h>#include <png.h>#include <stdio.h>#include <pspaudio.h>#include <pspaudiolib.h>#include "wavloader.h"#include "graphics.h"PSP_MODULE_INFO("BUTTONSTESTER", 0, 1, 1);WAV* OUTROS;/* Exit callback */int exit_callback(int arg1, int arg2, void *common) { WAV_Play(OUTROS);sceKernelDelayThread(3000000);sceKernelExitGame(); return 0;}/* Callback thread */int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0;}/* Sets up the callback thread and returns its thread id */int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } SceCtrlData pad;int STOP,PAUSE;Image* BACK;Image* LT;Image* RT;Image* LE;Image* RI;Image* UP;Image* DO;Image* TR;Image* CR;Image* SQ;Image* CI;Image* ST;Image* SE;WAV* INTROS;WAV* LES;WAV* RIS;WAV* UPS;WAV* DOS;WAV* LTS;WAV* RTS;WAV* TRS;WAV* CRS;WAV* SQS;WAV* CIS;WAV* STS;WAV* SES; void WHATISPRESSED(){ sceCtrlReadBufferPositive(&pad, 1); if(pad.Buttons & PSP_CTRL_LTRIGGER){blitAlphaImageToScreen(0,0,62,32,LT,32,30);WAV_Play(LTS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_RTRIGGER){blitAlphaImageToScreen(0,0,62,32,RT,376,30);WAV_Play(RTS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_TRIANGLE){blitAlphaImageToScreen(0,0,81,85,TR,372,85);WAV_Play(TRS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_CIRCLE){blitAlphaImageToScreen(0,0,81,85,CI,372,85);WAV_Play(CIS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_SQUARE){blitAlphaImageToScreen(0,0,81,85,SQ,372,85);WAV_Play(SQS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_CROSS){blitAlphaImageToScreen(0,0,81,85,CR,372,85);WAV_Play(CRS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_RIGHT){blitAlphaImageToScreen(0,0,75,77,RI,25,89);WAV_Play(RIS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_LEFT) {blitAlphaImageToScreen(0,0,75,77,LE,25,89);WAV_Play(LES);PAUSE=1;} if(pad.Buttons & PSP_CTRL_UP) {blitAlphaImageToScreen(0,0,75,77,UP,25,89);WAV_Play(UPS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_DOWN) {blitAlphaImageToScreen(0,0,75,77,DO,25,89);WAV_Play(DOS);PAUSE=1;} if(pad.Buttons & PSP_CTRL_SELECT){blitAlphaImageToScreen(0,0,107,24,SE,273,209);WAV_Play(SES);PAUSE=1;} if(pad.Buttons & PSP_CTRL_START){blitAlphaImageToScreen(0,0,107,24,ST,273,209);WAV_Play(STS);PAUSE=1;} }void DRAWSCREEN(){blitAlphaImageToScreen(0,0,480,272,BACK,0,0);WHATISPRESSED();flipScreen();if (PAUSE==1){PAUSE=0; sceKernelDelayThread(1000000);}}int main(){ SetupCallbacks(); initGraphics(); WAV_Init();INTROS = WAV_Load("./SOUND/INTRO.wav");WAV_Play(INTROS); LT=loadImage("./GRAPHICS/LTRIGGER.PNG");RT=loadImage("./GRAPHICS/RTRIGGER.PNG");LE=loadImage("./GRAPHICS/LEFT.PNG");RI=loadImage("./GRAPHICS/RIGHT.PNG");UP=loadImage("./GRAPHICS/UP.PNG");DO=loadImage("./GRAPHICS/DOWN.PNG");TR=loadImage("./GRAPHICS/TRIANGLE.PNG");CR=loadImage("./GRAPHICS/CROSS.PNG"); SQ=loadImage("./GRAPHICS/SQUARE.PNG");CI=loadImage("./GRAPHICS/CIRCLE.PNG");ST=loadImage("./GRAPHICS/START.PNG");SE=loadImage("./GRAPHICS/SELECT.PNG");BACK=loadImage("./GRAPHICS/PSP.PNG");OUTROS = WAV_Load("./SOUND/OUTRO.wav");LES = WAV_Load("./SOUND/LEFT.wav");RIS = WAV_Load("./SOUND/RIGHT.wav");UPS = WAV_Load("./SOUND/UP.wav");DOS = WAV_Load("./SOUND/DOWN.wav");LTS = WAV_Load("./SOUND/LTRIGG.wav");RTS = WAV_Load("./SOUND/RTRIGG.wav");TRS = WAV_Load("./SOUND/TRIANGLE.wav");CRS = WAV_Load("./SOUND/CROSS.wav");SQS = WAV_Load("./SOUND/SQARE.wav");CIS = WAV_Load("./SOUND/CIRCLE.wav");STS = WAV_Load("./SOUND/START.wav");SES = WAV_Load("./SOUND/SELECT.wav"); while(STOP==0){DRAWSCREEN();}sceKernelExitGame();return 0;}