Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   XBOX RUMBLE triggering (http://www.chiefdelphi.com/forums/showthread.php?t=143973)

jthenderson 02-16-2016 03:25 PM

XBOX RUMBLE triggering
 
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/rel...e454c1c7ed 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 02-17-2016 12:50 AM

Re: XBOX RUMBLE triggering
 
Do you need to explicitly call out the class name when using those constants? e.g. Joystick::kLeftRumble

jthenderson 02-17-2016 07:30 AM

Re: XBOX RUMBLE triggering
 
Quote:

Originally Posted by Alan Anderson (Post 1541564)
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!


All times are GMT -5. The time now is 09:17 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi