Virtual On Twin Stick to Zoids Infinity EX

Remapped button scheme so the Hori Twin Stick will also work on Zoids Infinity EX
Version1
AuthorLYH1
Publish DateSun, 28 Jun 2015 - 13:09
Last UpdateSun, 28 Jun 2015 - 13:09
Downloads11
RATE


1

0

Code: Select all
//Virtual On Twin Stick to Zoids Infinity EX
// By Zephyr LYH1
//----------------------------------------
//remap XB360_RB -> XB360_RT;
//remap XB360_LB -> XB360_LT;
 
//remap XB360_RT -> XB360_RB;
//remap XB360_LT -> XB360_LB;
unmap XB360_UP;
unmap XB360_LEFT;
unmap XB360_RIGHT;
unmap XB360_DOWN;
unmap 21;
unmap 22;
unmap 23;
unmap 27;
 
main {
    if(get_val(XB360_UP)) set_val(XB360_LY, -100);
    if(get_val(XB360_LEFT)) set_val(XB360_LX, -100);
    if(get_val(XB360_RIGHT)) set_val(XB360_LX, 100);
    if(get_val(XB360_DOWN)) set_val(XB360_LY, 100);   
    swap(XB360_RT,XB360_RB);
    swap(XB360_LT,XB360_LB);
    if(get_val(XB360_RB)) set_val(XB360_RB, 100);
    if(get_val(XB360_LB)) set_val(XB360_LB, 100);
}