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 

New OSK from (c)fw 5.00

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



Joined: 11 Jul 2007
Posts: 178

PostPosted: Fri Nov 07, 2008 8:32 pm    Post subject: New OSK from (c)fw 5.00 Reply with quote

Please,
a new OSK with full keyboard on screen is now available since last fw.
Using what already known and present in our SDK this new OSK is not accessible via SELECT.
I've seen a new .prx is added to 5.00 and 5.01 original fw, may be last one with the new OSK.
has anybody instruction on how to access to it? thanks
Back to top
View user's profile Send private message
AJ-829



Joined: 26 Jul 2008
Posts: 6

PostPosted: Sat Nov 08, 2008 4:03 pm    Post subject: Reply with quote

According to sony, its only accessible in the PSP's vsh, Games cant use this new and improved keyboard.
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Sat Nov 08, 2008 7:50 pm    Post subject: Reply with quote

OK. First you have to load the extra plugin that's been made.

flash0:/kd/osk_plugin_500.prx (I think).

Then use the OSK sample and see if there's an unused variable or something.

Sometimes, devs find functions that do nothing, but may be used in the future. Here's an example:

Code:
/**
 * Executes a new executable from a memory stick.
 * It is the function used by the firmware to execute ... ?
 *
 * @param file - The file to execute.
 * @param param - Pointer to a ::SceKernelLoadExecVSHParam structure, or NULL.
 *
 * @returns < 0 on some errors.
*/
int sceKernelLoadExecVSHMs3(const char *file, struct SceKernelLoadExecVSHParam *param);


See if you can find something like that in the OSK files.

There is another, cheekier way you can go about it. You load the OSK like normal and suff the "select" key 3-4 times.

Here's a function to help you do this:

Code:

//Load your common #include files.

//Before main thread

int gkeymask;

void stuff_key(int keymask)
{
   gkeymask = keymask;
   
   while (gkeymask != -1)
   {
      sceKernelDelayThread(2000);
   }
}

void OSKMapChange()
{
stuff_key(PSP_CTRL_SELECT);
sceKernelDelayThread(20000); // It's best to leave a pause so the PSP keeps up.
stuff_key(PSP_CTRL_SELECT);
sceKernelDelayThread(20000);
stuff_key(PSP_CTRL_SELECT);
sceKernelDelayThread(20000);
}

OSKMapChange();


I use it whith piKey:

Code:
            //Bookmarker
                if (isKeyPressed(KEY_B) && ctrl){
                if(browserRunning()){
                if(bufferchary < 1200){             
                Web_Bar_Remove();               
                stuff_key(PSP_CTRL_TRIANGLE);
                sceKernelDelayThread(20000);
                sceKernelDelayThread(500000);
                hold_key(PSP_CTRL_LEFT);
                sceKernelDelayThread(800000);
                hold_key(0);
                sceKernelDelayThread(20000);
                stuff_key(PSP_CTRL_RIGHT);
                sceKernelDelayThread(20000);
                stuff_key(PSP_CTRL_RIGHT);
                sceKernelDelayThread(20000);
                stuff_key(PSP_CTRL_RIGHT);
                sceKernelDelayThread(20000);
                stuff_key(PSP_CTRL_RIGHT);
                sceKernelDelayThread(20000);
                stuff_key(PSP_CTRL_RIGHT);
                sceKernelDelayThread(20000);
                stuff_key(enter);
                sceKernelDelayThread(100000);
                stuff_key(enter);
                sceKernelDelayThread(100000);
                stuff_key(enter);
                sceKernelDelayThread(1000000);
                hold_key(cancel);
                sceKernelDelayThread(200000);
                hold_key(PSP_CTRL_TRIANGLE);
                sceKernelDelayThread(500000);
                hold_key(0);
                bufferchary += 600;
                }else{
                overy = 1;
            }
               }
                  }


I hope that helps! Good luck!

Angelo
Back to top
View user's profile Send private message Send e-mail MSN Messenger
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Sun Nov 09, 2008 4:04 am    Post subject: Reply with quote

Thanks <<Angelo>> !! I'll try.
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Thu Nov 13, 2008 6:58 am    Post subject: Reply with quote

Did it work? I think the OSK in the SDK needs to be updated... K.

Who created it anyway?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
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