View Single Post
  #2   Spotlight this post!  
Unread 11-03-2010, 15:46
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: How To program the second joystick?

It depends on what are you using to program, but in c++ our code is :

class: public
{
JoyStick *RightStick, *LeftStick;
}

Public:
{
RightStick = new Joystick (1);
LeftStick = new Joystick (2);
}

and to program the trigger:

if (LeftStick or RightStick-> GetTrigger())
Device->Set()

(if this is any help for you ok!)

Last edited by krudeboy51 : 11-03-2010 at 15:48.
Reply With Quote