Noob question!

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

Moderators: cheriff, TyRaNiD

Post Reply
reigel
Posts: 14
Joined: Fri Jul 15, 2005 10:41 pm

Noob question!

Post by reigel »

Hi,
can someone say me why this not work for me?

Code: Select all

#include "pg.h"
#include "psp.h"





int xmain(void)
{
	
  unsigned long fc;
	unsigned long r,g,b,rgb;
	
	pgInit();
	pgScreenFrame(2,0);
	
	
	if( CTRL_START )
	{
	pgFillvram(0);
	pgPrint(0,1,0xffff,"Test22");
	pgScreenFlipV();
	pgWaitVn(200);
	}
	
	if(CTRL_SELECT)
	{
	pgFillvram(0);
	pgPrint(0,1,0xffff,"Test1");
	pgScreenFlipV();
	pgWaitVn(200);
}
}
Thx
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

CTRL_START and CTRL_SELECT defined somewhere as number > 0, so both bodies of the if statements are executed all the time. Please learn some C first before trying to write programs for PSP and you should use the new PSPSDK.
Post Reply