/// remap_duplicate_xjoybtn(index)
if (global.opxjoybtn_a == argument0) {
    global.opxjoybtn_a = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_b == argument0) {
    global.opxjoybtn_b = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_l == argument0) {
    global.opxjoybtn_l = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_l2 == argument0) {
    global.opxjoybtn_l2 = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_r2 == argument0) {
    global.opxjoybtn_r2 = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_x == argument0) {
    global.opxjoybtn_x = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_r == argument0) {
    global.opxjoybtn_r = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_sel == argument0) {
    global.opxjoybtn_sel = get_control_xjoybtn(global.curropt);
} else if (global.opxjoybtn_str == argument0) {
    global.opxjoybtn_str = get_control_xjoybtn(global.curropt);
}
