|
Re: Need pnuematics Idea Critique please help!
To capture the press event, you need one global variable and another var that can be local or global (doesn't matter). For my example, I will use the trigger of joystick on port 3. the [] means to use a block. I may not use the correct names for them, but you should get the gist of it...
Global:
int TrigWas;
Local:
int TrigIs;
...
TrigIs = [IOAnalog(3, 1)];
if (!TrigWas & TrigIs)
{
// Trigger was pressed...
}
TrigWas = TrigIs;
...
As for the rest of the coding, I'm not sure what your trying to do...
|