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 

Plugins - general advice pls

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



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Sat Nov 15, 2008 12:57 am    Post subject: Plugins - general advice pls Reply with quote

Hello, Im planning to write a small plugin...
I'd need to
1) show some stuff (mostly text) on screen in VSH mode. I think Ive heard that I need to write in VRAM directly, if I am right...
2) figure out the 'cursor' postition in XMB

Can you please recommend some plugins of which source code I could look into to get an idea about how to implement these features?

Thanks for any help!
_________________
...sorry for my english...
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Sat Nov 15, 2008 1:58 am    Post subject: Reply with quote

Unofficial piKey 0.4! It contains about 6 plugins.

Displaying text in the VSH - CTRLOut.PRX and piKey.PRX
VSH Co-Ordinating - OSKOut.PRX

Hope that helps!

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



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Sun Nov 16, 2008 12:42 am    Post subject: Reply with quote

Thanks.

If I got it right, piKey figures out current XMB postition by hooking sceCtrl functions, right?

Could I possibly figure out XMB cursor postition directly from RAM, if I knew where to look?
_________________
...sorry for my english...
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Nov 16, 2008 1:29 am    Post subject: Reply with quote

kralyk wrote:
Thanks.

If I got it right, piKey figures out current XMB postition by hooking sceCtrl functions, right?

Could I possibly figure out XMB cursor postition directly from RAM, if I knew where to look?


I don't think piKey figures out the XMB position at all. In the XMB it just injects whatever key you press by hooking sceCtrl function.

In the OSK I think when the OSK opens, it moves the cursor to a predefined location by sending key strokes, then it just detects further key presses from the user and calculates the new position of the cursor relative to the starting position.

Its more or less humanly impossible to figure out from RAM because its waaay to comlex.
Back to top
View user's profile Send private message
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Sun Nov 16, 2008 10:58 am    Post subject: Reply with quote

Well the basic concept is there. Co=ordinates are used in OSK_Out.

He can use the concept to find the locaton of the XMB using key presses.

I'mjust wondering about what he should do about when entering a XMB app like the web browser or music player.

I'm sure he'lll figure it out!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Mon Nov 17, 2008 9:48 pm    Post subject: Reply with quote

Yeah, I think Ill be able to detect that by cheking for loaded modules, because I think that when XMB starts the browser or player some more modules are loaded.

Alright, thanks guys for yout hints...
_________________
...sorry for my english...
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