Settings for Danzeff OSK

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
PeterLeRoi
Posts: 31
Joined: Wed May 16, 2007 11:08 am

Settings for Danzeff OSK

Post by PeterLeRoi »

Hello everyone! I´m (a newbie) writing a program which needs taking some info from a virtual keyboard. I´ve read the readme.txt but still have some questions:

Can´t compile the program because of the Makefile. This is what i´m using:

TARGET = savedata
OBJS = main.o danzeff.o

CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSPSDK Savedata Sample

PSPSDK = $(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

I know it isn´t enough. Somebody could explain what do I need to add?

Thanks for everything :)
Fanjita
Posts: 217
Joined: Wed Sep 28, 2005 9:31 am

Post by Fanjita »

What errors do you get?
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
PeterLeRoi
Posts: 31
Joined: Wed May 16, 2007 11:08 am

Post by PeterLeRoi »

Ok, finally reduce all the errors to just one. I want to initialize the keyboard with:

danzeff_load();

But then, when trying to compile, it gives an error:

main: undefined refence to 'danzeff_load'

But with other functions like: int danzeff_dirty() or void danzeff_render() wchich are included in "danzeff.c"; it compiles fine. Some idea how could I resolve the problem?

Edited: Ok, the error was=> void danzeff_load();




Now it compiles, but doesn´t show any keyboard on screen.


The source code should be:

/* */
void danzeff_load();
void danzeff_render();
/* */

Compile, and add "graphics" folder next to the EBOOT, no?

I can´t get it working.
everlasting
Posts: 41
Joined: Mon Mar 19, 2007 6:27 pm

Post by everlasting »

You need to setup the graphics. You should look at some samples included in the SDK concerning the GU. Once you have setup the graphics as done in the mentioned samples and you have loaded the images with danzeff_load() it would be enough to do:
while(1){
sceGuStart(GU_DIRECT, list);

danzeff_readInput(pad);
danzeff_render();

sceGuFinish();
sceGuSync(0, 0);

sceDisplayWaitVblankStart();
sceGuSwapBuffers();
}

Hope this help you.
Post Reply