Acidmods
Acidmods Gaming Area => Console Games => PSP Software & Gaming => Topic started by: *FuFa on December 02, 2007, 09:35:09 AM
-
Hey guys,
I'm looking for a diagnostic tool for the PSP that shows me if a button is pressed and which, the position of the analog nub would be awesome too. I don't know if that already exists or not, if not, anyone wanna program it? It would be hella useful.
-
I can write tool like this for you mate :cool:
-
that would be great for you to do that mootoo as it would allow modders to test all the buttons and triggers to help see if they have wired all the buttons up properly plus it would be really kwl
-
im working on it , maybe tomorow I can release it here. :winker:
phase : working on graphics i hate PS lol
-
if you ever need help with graphics im sure some of our artists would be more than happy to help if you dont like photoshop
-
OK work done!
only for digi buttons for this time .I can add analog nob in future.
http://www.sendspace.com/file/eo86my (http://www.sendspace.com/file/eo86my)
http://rapidshare.com/files/74801772/BUTTOK.rar.html (http://rapidshare.com/files/74801772/BUTTOK.rar.html)
Just paste folder BUTTOK in your PSP/GAME folder it worx on every CFW and Kxploited 1.50 FW.
Feedback wanted!
-
no one care? test it out and give some feedback please .sry4DP
-
no one care? test it out and give some feedback please .sry4DP
No need to be sorry man, this is a piece of awesome right there. It just saved my ass, prevented alot of useless work. It's just overall awesome man.
I love it.
Too bad my PSP crashes when I set it to automaticly start it at boot up : (
-
if U want some sw :censored:s just pm me
sry i don't know why U can'tboot with my simple thing
i can add other things like UMD switch wifi sw and other things but u must write witch or how !!!!!!!!!!!!!!!!!!!!!!!!
-
i find that amazing ill test it out later but thats a handy peice of software :tup:
-
Well could you make it output a big text when a button is pressed? It's easier to see what you are pressing, especially when you have your screen hanging free.
-
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
-
did i post something i can't remember and why are you sorry
:rofl: 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.
-
:rofl: 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.
Sexy
-
:drunk: I got it here is link :
http://rapidshare.com/files/75239631/BUTTONS.rar.html (http://rapidshare.com/files/75239631/BUTTONS.rar.html)
enjoy speech enabled button tester from mootoo's lab :huh:
here is src:
#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;
}