16 |
<p> |
<p> |
17 |
Dropping events with this function only succeeds if the event just |
Dropping events with this function only succeeds if the event just |
18 |
"recently" occurred. That effectively means you should drop the event in |
"recently" occurred. That effectively means you should drop the event in |
19 |
the respective event handler before any <code>wait() calls, and before |
the respective event handler before any <code lang="nksp">wait()</code> calls, and before |
20 |
entering any loops that may execute your script for a very long time. |
entering any loops that may execute your script for a very long time. |
21 |
Because in both cases the sampler may suspend your script for a certain |
Because in both cases the sampler may suspend your script for a certain |
22 |
amount of time and once your script got resumed, the respective event may |
amount of time and once your script got resumed, the respective event may |
24 |
thus can no longer be dropped. |
thus can no longer be dropped. |
25 |
</p> |
</p> |
26 |
<p> |
<p> |
27 |
There is also an <code lang="nksp">ignore_controller()</code> function, |
There is also an <code>ignore_controller()</code> function, |
28 |
intended for explicitly dropping control change events. With NKSP you |
intended for explicitly dropping control change events. With NKSP you |
29 |
you can also use <code>ignore_event()</code> though to |
you can also use <code>ignore_event()</code> though to |
30 |
drop control change events. So <code>ignore_controller()</code> |
drop control change events. So <code>ignore_controller()</code> |