PS4 SHARE and PS Menu functionality for XB1 Controller

Provides PS SHARE button and PS HOME button functionality via DirectInput. For use with: MaxAim DI plugin XB1 VIEW button must be mapped to the DS4 TOUCH button. DS4 SHARE button and PS button mappings must remain unassigned in order to achieve, proper, functionality. Hold LT and press and/or hold the VIEW button to activate SHARE Hold LT and press and/or hold the MENU button to activate PS MENU Script compiled by: mjfame
Version1.00
Authormjfame
Publish DateSun, 27 Sep 2015 - 04:08
Last UpdateSun, 27 Sep 2015 - 04:08
Downloads189
RATE


2

0

Release Notes: n/a
Code: Select all
/* *
* GPC SCRIPT
*
*  GPC is a scripting language with C-like syntax.
*  To learn more access GPC Language Reference on Help menu.
* *********************************************************** */

 
main {
    // Provides PS SHARE button and PS HOME button
    // functionality via DirectInput.
    //
    // For use with: MaxAim DI plugin
    // XB1 VIEW button must be mapped to the DS4 TOUCH button.
    // DS4 SHARE button and PS button mappings must remain
    // unassigned in order to achieve, proper, functionality.
    //
    // Hold LT and press and/or hold the VIEW button to
    // activate SHARE
    // Hold LT and press and/or hold the MENU button to
    // activate PS MENU
    //
    // Script compiled by: mjfame
    if(get_val(PS4_L2) && get_val(PS4_OPTIONS)) {
        set_val(PS4_PS, 100);
        set_val(PS4_OPTIONS, 0);
        set_val(PS4_L2, 0);
 }
    if(get_val(PS4_L2) && get_val(PS4_TOUCH)) {
        set_val(PS4_SHARE, 100);
        set_val(PS4_TOUCH, 0);
        set_val(PS4_L2, 0);
 }
}