Hi there
Am having much trouble here
Trying to distuinguish key down from key up from user of particular key (so that I execute some commands when keydown as loop and others as soon as key up) but it aint working!
I have this format in Sleep command
[Sleep, 0.001,
blah blah
if sleepresult=16 , blah blah
if sleepresult = 32, blah
[SleepAgain]
, 16 + 32 (codes for key up and keydown), SleepResult]
I wanna apply this for particular keyboard key. Problem is , sleep result is ALWAYS 16! (keydown) I tried a new sleep command for separating but doesnt work, ZScript doesnt allow 2 sleep commands in a row
Would appreciate advice
Cheers!
And one more thing
Is it just me or is the timer event not working in Sleep for repetitive timed actions!? Sleep can only ever be woken with the other discrete events it seems, why is this so, and how do I approach time based events / loops?
Cheers!