Home  Contents

keyboard:drain

Keyboard Core4 Lua Event System

SYNOPSIS

kbdhandle:drain()

DESCRIPTION

Clears all keyboard events that have been buffered but not yet processed.

NOTES

Beware. This will clear all events, including key-up events. If some high-level code has seen a key-down already, waiting for a key-up that never comes, this will surely cause confusion.