Skip to content

FlushMouse

Narta Xaymar Dirks edited this page Nov 1, 2026 · 9 revisions

Blitz3DBlitzPlusBlitzBasic

FlushMouse

FlushMouse:Void

Description

Forgets mouse button presses that nobody has looked at yet: the queue behind GetMouse and WaitMouse, the presses counted for MouseHit, and the movement counted by the speed functions. Use it before a screen that waits for a click so that earlier clicks do not skip it, but not in the main loop.

Differences

  • The Device argument is a BlitzLLVM extension: the original has no such argument and only knows one mouse.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Text 10, 10, "Click as often as you like..."
Flip
Delay 2000
FlushMouse
Cls
Text 10, 10, "Old clicks are gone. Click once more."
Flip
WaitMouse

Related Commands

GetMouse, LastMouseDevice, LockMouse, MouseChanged, MouseDeviceConnected, MoveMouse, UnlockMouse, WaitMouse

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally