I would say setup your OI for two, but have a switch to change between 1, 2, or xbox.
you could use code like this. You would need to wire a toggle switch to Port3 Top and Port3 Trig, but thats simple.
Code:
if (p3_sw_trig)//one joy
{
pwm01 = Limit_Mix(2000 + p1_y - p1_x + 255);
pwm02 = Limit_Mix(2000 + p1_y + p1_x - 255);
}
else if (p3_sw_top)//xbox
{
//xbox control code here.
}
else //two stick
{
pwm01 = p1_y;
pwm02 = p2_y;
}
If you have any questions PM or e-mail me.