Hey
I've built a PRX that simply renames a file with a button combination in the XMB (made from the SDK sample).
The XMB boots fine with the module loading, but the XMB's button input no longer works. (ie, I can't move around). However, all the file renaming works like a charm (I checked with USB).
What I've changed from the sample is the main function, added a library or two (for button input) and I've put "USE_PSPSDK_LIBC" as "0" (which I assume lets the app use the kernel's LIBC), which reduced the file size by 50% but made no difference to the operation of the module (still works, but the XMB's button input doesn't).
So, here's my question:
How can I re-enable the XMB's button input?
PRX in VSH: Button input disabled.
-
- Posts: 376
- Joined: Wed May 10, 2006 11:31 pm
I haven't got that code.
I've only got
EDIT: I see, sceCtrlReadBufferPositive should change to sceCtrlPeekBufferPositive?
I've only got
Code: Select all
SceCtrlData pad; sceCtrlReadBufferPositive(&pad, 1);
if ((pad.Buttons & PSP_CTRL_HOME) && (pad.Buttons & PSP_CTRL_RTRIGGER)){
//code
}
I noticed that, sorry if I peeved you off...
Oh, and it doesn't work. Well, it does, but the XMB will only work if one of the button combinations I'm using is being pressed.
For example, when the PSP boots, all I see is a black screen, but when I hold down [Home]+[R] or [Home]+[L] (both are the button inputs I've specified), the memory stick light constantly flashes, and the XMB boots. When I stop holding the buttons, it freezes until I hold them down again.
Can I rectify this?
Oh, and it doesn't work. Well, it does, but the XMB will only work if one of the button combinations I'm using is being pressed.
For example, when the PSP boots, all I see is a black screen, but when I hold down [Home]+[R] or [Home]+[L] (both are the button inputs I've specified), the memory stick light constantly flashes, and the XMB boots. When I stop holding the buttons, it freezes until I hold them down again.
Can I rectify this?
Urm how are you actually reading the key presses ? Are you just doing basically:
If so then probably your are preventing other threads from running.
Code: Select all
while(1) { /* Check Key Press */ }