//OSlib header file#include <oslib/oslib.h>//Necessary to create ebootPSP_MODULE_INFO("OSLib Sample", 0, 1, 1);PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);int main(){ //Initialization of the Oslib library oslInit(0); //Initialization of the graphics mode oslInitGfx(OSL_PF_8888, 1); //Initialization of the text console oslInitConsole(); //Initialization of the audio mode oslInitAudio(); //Main loop int x = 0; int playPause = 0; //clears the screen oslCls(); while (x<1) { //To be able to draw on the screen oslStartDrawing(); //initiate the PSP's buttons oslReadKeys(); //main code. oslPrintf_xy(20,20,"Press Sart at any time to exit."); oslPrintf_xy(20,40,"X - play/pause."); oslPrintf_xy(20,50,"[] - Stop."); oslPrintf_xy(20,60,"R - Skip back."); oslPrintf_xy(20,70,"L - Skip forward."); if (osl_keys->held.start) x = 2; if (osl_keys->pressed.cross &&playPause == 0){ oslPrintf_xy(40,80,"Playing."); playPause = 1; } if (osl_keys->pressed.cross && playPause == 1){ oslPrintf_xy(40,80,"Paused."); playPause = 0; } if (osl_keys->pressed.square) oslPrintf_xy(40,80,"Stoped."); if (osl_keys->pressed.R) oslPrintf_xy(40,80,"Skiped back."); if (osl_keys->pressed.L) oslPrintf_xy(40,80,"Skiped Forward."); //end main code. //Ends drawing mode oslEndDrawing(); //Synchronizes the screen oslSyncFrame(); } oslDeinitAudio(); //Terminate the program oslEndGfx(); oslQuit(); return 0;}