[PSPGo] DualShock3 R3 and L3 can be used
Posted: Sat Aug 23, 2014 12:32 am
EDIT: this thread lead to Total-Noob writing a plugin that allows access to all DualShock3 buttons and sticks, grab the lattest version of the configurable plugin here!
I've searched and I haven't been able to find this anywhere and thought it was interesting, so I've come to share here.
I was messing with a control hook example and made a simple program to view the raw Buttons variable from SceCtrlData structure. I had my DS3 connected to my PSPGo and as expected L2 and R2 are redirected to L and R triggers, as all the other buttons are to the PSP corresponding buttons. But not the L3 and R3, which are seen by the PSP as two additional buttons:
PSP_CTRL_L3 = 0x000002
PSP_CTRL_R3 = 0x000004
For example this can be used with SSSSS (a screenshot plugin) to make the screenshots with the L3 or R3 button, since its configuration file uses the button value directly.
From uOFW I've seen that sony has functions to emulate button input, which may or might not be used to map the DS3, so this is just a guess but the L2 and R2 actual values may be 0x000400 and 0x000800 respectively (before being remapped, this won't work like L3 and R3 do). Also in uOFW there are reversed functions like "sceCtrlReadBufferPositiveExtra" which uses an extended structure (SceCtrlDataExt) which I think has the actual button presses of the DS3, including R2, L2 and the right analog stick; but I'm probably wrong with all this speculation.
I've searched and I haven't been able to find this anywhere and thought it was interesting, so I've come to share here.
I was messing with a control hook example and made a simple program to view the raw Buttons variable from SceCtrlData structure. I had my DS3 connected to my PSPGo and as expected L2 and R2 are redirected to L and R triggers, as all the other buttons are to the PSP corresponding buttons. But not the L3 and R3, which are seen by the PSP as two additional buttons:
PSP_CTRL_L3 = 0x000002
PSP_CTRL_R3 = 0x000004
For example this can be used with SSSSS (a screenshot plugin) to make the screenshots with the L3 or R3 button, since its configuration file uses the button value directly.
From uOFW I've seen that sony has functions to emulate button input, which may or might not be used to map the DS3, so this is just a guess but the L2 and R2 actual values may be 0x000400 and 0x000800 respectively (before being remapped, this won't work like L3 and R3 do). Also in uOFW there are reversed functions like "sceCtrlReadBufferPositiveExtra" which uses an extended structure (SceCtrlDataExt) which I think has the actual button presses of the DS3, including R2, L2 and the right analog stick; but I'm probably wrong with all this speculation.