Plugins - general advice pls

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

Moderators: cheriff, TyRaNiD

Post Reply
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Plugins - general advice pls

Post by kralyk »

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...
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

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
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

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...
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

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.
angelo
Posts: 168
Joined: Wed Aug 29, 2007 9:34 pm

Post by angelo »

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!
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

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...
Post Reply