Skip to content

FlushEvents

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

FlushEvents

FlushEvents:Void kind:Int32=-1, source:Int32=0
Parameter Mode Type Default Description
kind In Int32 -1 Event kind or group to remove. Defaults to -1, which means all.
source In Int32 0 Only remove events from this object. Defaults to 0, which means any.

Description

Throws away events that are waiting, so they are never delivered by WaitEvent. Without parameters everything goes. A kind removes only that one, a kind with the low byte zero such as $100 removes the whole group of keys, and a source removes only what came from there.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Flush", 20, 20, 240, 100, Desktop(), 3)
Delay 500
FlushEvents $100 ; drop the keys that were typed meanwhile
Repeat
Until WaitEvent() = $803

Related Commands

CreateProcess, DebugObjects, FontAscent, FontDescent

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally