forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Noob question!

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
reigel



Joined: 15 Jul 2005
Posts: 14

PostPosted: Fri Jul 15, 2005 10:43 pm    Post subject: Noob question! Reply with quote

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

Code:

#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
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Jul 16, 2005 12:11 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group