Note, Volup,Voldown, WlanUp and Home...how to capture them?!

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

Moderators: cheriff, TyRaNiD

Post Reply
Red_Squirrel
Posts: 11
Joined: Wed Oct 03, 2007 5:17 pm

Note, Volup,Voldown, WlanUp and Home...how to capture them?!

Post by Red_Squirrel »

Hi guys, I have a little problem: i made a program to configure another one, and its aim is to set the key combination of the second program... when you press a key program saves the key combination in a txt file.

The problem is this:
I use this code:

while(1)
{
sceCtrlReadBufferPositive(&pad,1);
switch(pad.Buttons)
{
case PSP_CTRL_HOME:
.......
break;
....


The problem is that PSP_CTRL_NOTE, VOLUP, VOLDOWN, WLAN_UP and HOME does NOT work!!!
Other keys work perfectly, but they not... if you press one of them nothing happen, like no key is pressed... why?!

Thanks to all ;)
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

You need kernel mode to read those keys.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

If you look in apps like SNES9xTYL ME for the Slim, you'll find a prx that allows you to read HOME from a user app. You could also look for the other kernel-level buttons by modifying the prx.
Post Reply