Xbox shoulder button support for Playstation TV

The Playstation TV does not support the use of trigger buttons (L2 and R2) during gameplay. This script duplicates the function of L1 and R1 (Left and Right Bumper) to the triggers when using an Xbox One or 360 controller. So you can press either LB or LT on the Xbox pad to activate the Vita/PS TV's L button, and either RB or RT to activate the R button. Doesn't it feel better to fire with the triggers? :) Note: This does interfere with the L2 and R2 function when using the PS TV software keyboard for messages, etc.
Publish DateSat, 31 Jan 2015 - 23:01
Last UpdateSat, 31 Jan 2015 - 23:01



Code: Select all
// GPC Online Library
// xbox-controller-shoulder-button-script-for-playstation-tv.gpc
/* *
*  GPC is a scripting language with C-like syntax.
*  To learn more access GPC Language Reference on Help menu.
* *********************************************************** */

main {
    // This makes any press of RT equal RB(R1) and any press of
    // LT equal LB (L1) when used with Playstation TV.
    if(get_val(XB1_RT)) {
        set_val(XB1_RB, 100);
    if(get_val(XB1_LT)) {
        set_val(XB1_LB, 100);