Code:
if(joystick3.GetRawButton(On)){
c->Start();
}
else if(joystick3.GetRawButton(Off)) {
c->Stop();
}
else {
c->Stop();
}
This says that if you're holding button 8 on the joystick the compressor will run. Keep in mind that the only time that the compressor will run is when that button is held. Is that the intended behavior?