Log in

View Full Version : XBOX RUMBLE triggering


jthenderson
16-02-2016, 15:25
Hey Chief Delphi! does anyone know how to trigger the xbox rumble? in c++... I'm following this page (http://first.wpi.edu/FRC/roborio/release/docs/cpp/classJoystick.html#ac4179e6e493357c06cb8e454c1c7ed ef) and SetRuble(kLeftRumble) is always underlined in red... it would be used to trigger when we are in shooting range... it would be a massive help!

Thanks for your time!


if (stick2.GetRawButton(8) == true)
{
stick2.SetRumble(kLeftRumble, 1);
}
else
{
stick2.SetRumble(kLeftRumble, 0);
}

Alan Anderson
17-02-2016, 00:50
Do you need to explicitly call out the class name when using those constants? e.g. Joystick::kLeftRumble

jthenderson
17-02-2016, 07:30
Do you need to explicitly call out the class name when using those constants? e.g. Joystick::kLeftRumble

Thanks! I didn't think of that! This was super helpful!