Accessibility: 3DS stick hard-wired to XBOX 360 joypad

Method of using a low-profile 3DS thumb-stick with a Titan One for use on Xbox and Playstation. Corrects the Y-axis (if connected in a reversed manner). Ramps up sensitivity. Creates a larger dead-zone. For more on accessible gaming, see SpecialEffect at www.SpecialEffect.org.uk.
Version1.00
AuthorSpecialEffect
Publish DateSun, 19 Apr 2015 - 17:05
Last UpdateSun, 19 Apr 2015 - 17:05
Downloads121
RATE


1

0

Code: Select all
/* *
* GPC SCRIPT: "3DS to XB360 LEFT-STICK"
*
* Controller = 3DS analogue thumb-stick hard-wired to the left-stick in an Xbox 360 joypad
* Script function = correct Y-axis, set sensitivity to maximum and set a large dead-zone for correct function.
*
* *********************************************************** */

 
define DeadZoneLeftStick = 35; // Deadzone modifiers
define DeadZoneRightStick = 35;
 
main {
    set_val(XB360_LY, inv(get_val((XB360_LY))));
    sensitivity(XB360_LY, NOT_USE, 327);
    sensitivity(XB360_LX, NOT_USE, 327);
 
if(get_val(10) <= DeadZoneRightStick && get_val(10) >= DeadZoneRightStick*-1) set_val(10,0);
if(get_val( 9) <= DeadZoneRightStick && get_val( 9) >= DeadZoneRightStick*-1) set_val( 9,0);
if(get_val(12) <= DeadZoneLeftStick && get_val(12) >= DeadZoneLeftStick*-1) set_val(12,0);
if(get_val(11) <= DeadZoneLeftStick && get_val(11) >= DeadZoneLeftStick*-1) set_val(11,0);
 
}