Contents

TwKeyTest (function)

int TwKeyTest(int key, int modifiers)

Description

This function checks if a key event would be processed by TwKeyPressed but without processing it. TwKeyTest could be helpful to prevent bad handling report, for instance when processing WM_KEYUP and WM_KEYDOWN in windows event loop (see file src/TwEventWin.c).

Parameters

key

The ASCII code of the key, or one of the TwKeySpecial codes.

modifiers

One or a OR-ed combination of the TwKeyModifier constants.

Return value

See also

TwKeyPressed, TwKeyModifier, TwKeySpecial