Quote:
Originally Posted by Potatonator
Is there any way to set this to run from multiple joysticks? For instance, having button 1 on joystick 1 start and button one on joystick 2 stop it?
|
You could do it like this:
Code:
if(joystick1.getRawButton(buttonNumber)
{
speedController.set(1.0);
}
else if(joystick2.getRawButton(buttonNumber)
{
speedController.set(0.0);
}