Warning: This site is under construction, most links will be broken.
LightX API -> lxinputkeyboard -> pressed
Last modified on Wed, 9th May 2007 at 02:50 UTC by zippletlxinputkeyboard.pressed
function pressed(
key: word
): boolean;
Returns TRUE if the specified key was pressed since the last time it was checked or flushed. Even if a key is already held down, it can become pressed again due to keyboard repeat. Basically, held provides a realtime pressed/not pressed status, but pressed returns TRUE every time a key event is generated.
After a call to this function, the key is reset so a second call will return FALSE unless the event triggers again.
key: word
The key to check. Key IDs use the windows virtualkey (VK) constants.
Class: lxinputkeyboard