|
Of course
It's going to look something like this (note: I use the underscores for indention purposes only, do not include them in your code):
'If port1 trigger is pressed then
If p1_sw_trig = 1 then
_____'Perform Action Here
endif
Or if you wanted it so when you pressed a joy button it would turn an action on, and when you pressed it again, it would do another action then:
'Declare this variable at top of code
action_on VAR byte
'If port1 trigger is pressed then
If p1_sw_trig = 1 then
_____'Switch from on to off
_____toggle action_on
endif
'If alternate action is specified then
If action_on = 1 then
____'Do action here
else
____'Do another action here
end if
__________________
.................................................. .........
Dylan Vester - (Programmer)
Running a P4 1.8 Ghz
Team 998, We can't win...
.................................................. .........
|