Skip to content

MouseWait

Narta Xaymar Dirks edited this page Oct 30, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

MouseWait

MouseWait:Int32

Returns: The number of the button that was pressed.

Description

The older name of WaitMouse. It stops the program until a mouse button is pressed and returns the button.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Text 10, 10, "Click a mouse button"
Flip
Local b = MouseWait()
Cls
Text 10, 10, "That was button " + b
Flip
Delay 1000

Related Commands

MouseChanged, MouseDeviceConnected, MouseDeviceCount, MouseDeviceName, MouseDown, MouseHit, MouseX, MouseXSpeed

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally