|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#8
|
||||
|
||||
|
Re: 1 joystick or 2?
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;
}
Last edited by EHaskins : 18-01-2007 at 11:08. Reason: Code error. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| joystick ? | _GP_ | General Forum | 1 | 26-02-2004 23:10 |
| Joystick | rmmlg | Inventor | 0 | 15-02-2004 16:34 |
| Joystick | cammie825 | Technical Discussion | 1 | 15-01-2003 10:48 |
| No Joystick | archiver | 2001 | 2 | 24-06-2002 01:14 |
| Joystick | Absolute Value | Technical Discussion | 21 | 22-02-2002 10:56 |