|
Re: "GetTrigger(KHand hand)" what???
Quote:
Originally Posted by xtreampb
in the joystick class, the member function GetTrigger(), how do i use this. I am using it in the following code:
if (m_FireStick->GetTrigger())
{
solenoid->Set(true);
solenoid->Set(false);
}
when i press the trigger, the code isn't executing. what am i doing wrong
|
Uh... you're setting it on then off imediately. Try this:
Code:
if (m_FireStick->GetTrigger())
{
solenoid->Set(true);
}else{
solenoid->Set(false);
}
__________________
Amperage Robotics Team 1225
Site under-going revamp. :/
|