Skip to content

What does the Idle condition duration do while "If not"? #1201

Answered by WarmUpTill
dpcollier128 asked this question in Q&A
Discussion options

You must be logged in to vote

I assume you are are using Windows:

If that is the case, the condition uses the getlastinputinfo Windows API call.
This gives information about "when the last input event was received."
This value is subtracted from the current time.
If the result of this operation exceeds the given duration the condition will return true and otherwise false.

So, this a long way of saying it uses the "at least" type of duration check.

The idle condition itself does not know, what type of logical operator is applied to it.
So when applying a negation its returned value will simply be negated, which will result in the condition behaving as "if there was any input with the the last X seconds".

I hope this cl…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dpcollier128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants