[SOLVED] Help with danzeff osk
[SOLVED] Help with danzeff osk
I've read akll the post in this forum about this argument but there isn't a completely answer, i'haven't find a example for the danzeff osk function,
there is only a readme!
My question is:
How to load the osk and write to screen the caracter pressed?
there is only a readme!
My question is:
How to load the osk and write to screen the caracter pressed?
Last edited by ne0h on Tue Apr 29, 2008 11:22 pm, edited 1 time in total.
Get Xplora!
I've writed this code, but nothing appear on the screen!
Makefile
Why?
Code: Select all
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspdebug.h>
#include <pspgu.h>
#include <pspgum.h>
#include <callbacks.h>
#include <pspaudio.h>
#include <SDL/SDL.h>
#include <pspsdk.h>
#include "danzeff.h"
PSP_MODULE_INFO("ajkfadfjk", 0, 1, 1);
#define printf pspDebugScreenPrintf
int main()
{
SetupCallbacks();
pspDebugScreenInit();
int n;
SceCtrlData pspctrl;
void danzeff_load();
printf("Inizio");
while(1){
danzeff_dirty();
n = danzeff_readInput(pspctrl);
printf("%c",n);
void danzeff_render();
}
sceKernelSleepThread();
}
Code: Select all
TARGET = file
OBJS = main.o danzeff.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LIBS = -lpspgu -lpspgum -lpsppower -lpng -lz -lm -lsdl -lz -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpsputility -lpspuser -lpspkernel -lpsphprm_driver
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Background Changer
include $(PSPSDK)/lib/build.mak
Get Xplora!
Because you're not calling danzeff_load or danzeff_render, you're declaring prototypes.ne0h wrote:I've writed this code, but nothing appear on the screen!Why?Code: Select all
void danzeff_load(); printf("Inizio"); while(1){ danzeff_dirty(); n = danzeff_readInput(pspctrl); printf("%c",n); void danzeff_render(); }
Don't hold back - tell us how you really feel. :)jean wrote:AAAAAAAAAAARRRRRRRGHHHHHHHHHH LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C,LEARN C!!!!!!!!!!!!!!!!!!!!!!!!!!!! damn #*?!_;à
ne0h: if you don't know the difference between "void do_something();" and "do_something()", you probably need a few more lessons in C before trying to do your own PSP program. Not an insult, just a recognition of general ability. Programming the PSP requires you to be proficient in C and maybe C++. You don't seem to have the proper proficiency yet.
See the makefile and the src, i've included "danzeff.h" library and linked danzeff.c (danzeff.o) but the compiler don't find the declaration of danzeff_load, i've writed void danzeff_load(); to jump over this function and see what appen!
The daclaration of danzeff_load(); is in the danzeff.h and danzeff.c library, why the compiler don't find the declaration?
This error i only for this function:
danzeff_load();
danzeff_render();
another function works perfectly! (danzeff_dirty(); works perfectly!!! )
Can anyone give me an example to load the osk?
The daclaration of danzeff_load(); is in the danzeff.h and danzeff.c library, why the compiler don't find the declaration?
This error i only for this function:
danzeff_load();
danzeff_render();
another function works perfectly! (danzeff_dirty(); works perfectly!!! )
Can anyone give me an example to load the osk?
Get Xplora!
Doom for the PSP uses the OSK.
http://groups.google.com/group/chilly-w ... -psp?hl=en
You'll note that it does two waits on the vblank in the OSK loop - the OSK is "twitchy" if you call it at 60 Hz. It feels MUCH better at 30 Hz. It's something I keep mentioning to sakya about his interface on LightMP3, but he hasn't changed it yet. ;) :)
http://groups.google.com/group/chilly-w ... -psp?hl=en
You'll note that it does two waits on the vblank in the OSK loop - the OSK is "twitchy" if you call it at 60 Hz. It feels MUCH better at 30 Hz. It's something I keep mentioning to sakya about his interface on LightMP3, but he hasn't changed it yet. ;) :)
I've the function in C++ for load the built-in osk, i've compiled the eboot correctly, but i can not integrate this function in my code because i'm writing my prog in C, i've think to build a prx that can load with arg (the already present text) and return the value of the string writed;
I've writed an example:
And load the PRX with sceKernelLoadStartModuleWithArgs(1, "String args");
but how to capture the return of the main function in the prx?
Is possible to do what i've writed?
Excuse me is this function in not correctly but i didn't know good the function to load a prx etc...
I've writed an example:
Code: Select all
//--- various include
#define printf pspDebugScreenPrintf
#define RGB(r, g, b) ((r)|((g)<<8)|((b)<<16))
PSP_MODULE_INFO("PSP_Explorer", 0, 1, 1);
char main(char* argc, char **argv[])
{
pspDebugScreenInit();
printf("%s", argv[1]);
char returnstring[128]="String returned";
return returnstring;
}
but how to capture the return of the main function in the prx?
Is possible to do what i've writed?
Excuse me is this function in not correctly but i didn't know good the function to load a prx etc...
Get Xplora!
Pikey is NOT an OSK - rather, it is a plugin that lurks in the background until you try to use the Sony OSK, then it generates fake button inputs when you type on an IR keyboard to simulate the user using the dpad/buttons to select the corresponding letters in the OSK. When in a game or app, certain keys can also be used to simulate pressing the dpad, buttons, or analog stick, allowing one to control the app via the IR keyboard.ne0h wrote:Thanks,
excuse me but piKey0.4 is a osk, isn't it?
Can i use it?
-
- Posts: 41
- Joined: Mon Mar 19, 2007 6:27 pm