Programming Guide



sm_keyfilter

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.


Returns

Description

sm_keyfilter turns on or off the keystroke record/playback mechanism of sm_getkey according to the value of flag.

Example

/* Disable key recording and playback. */

sm_keyfilter(0);

See Also

sm_getkey