|
Re: Single Click On/Off Using the Trigger in EasyC
Quote:
Originally Posted by Brad Voracek
I've never written C where && means both values are equal to the value on the right of the ==. I've always done it if (p1_sw_trig == 0 && n == 0)...
Maybe try that?
|
Since the value of a trigger is already essentially a boolean you can just use it as itself, no == needed. So what he has is the same thing as (p1_sw_trig == 1 && n == 0)
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain
|