Programming Guide |
Controls keystroke record/playback filtering
int sm_keyfilter (int flag);
flag
- One of the following values:
1
Turn keystroke record/playback on.
0
Turn keystroke record/playback off.
<0
Return the status of keystroke record/playback.
- The previous value of the filter flag:
sm_keyfilter
turns on or off the keystroke record/playback mechanism of sm_getkey according to the value offlag
.
/* Disable key recording and playback. */
sm_keyfilter(0);