View Single Post
  #2   Spotlight this post!  
Unread 11-02-2013, 16:04
mrklempae mrklempae is offline
Registered User
no team
 
Join Date: Jan 2013
Location: Montana
Posts: 19
mrklempae is an unknown quantity at this point
Re: Programming Shooter C++

I have no idea what your setup is, but it would look something like this:
Code:
while (IsOperatorControl())
		{	           
			bool Button =joystick -> GetRawButton (3);
			if (Button)
			{
				Motor1->Set(1);
                        }
                        else if (!Button)
                        {
                               Motor1->Set(0);
                        }
                }
Reply With Quote