Skip to content

MouseChanged

Narta Xaymar Dirks edited this page Oct 30, 2026 · 1 revision

MouseChanged

MouseChanged:Int32

Returns: True if the mouse was used, False if not or if there is no such mouse.

Description

Tells if the user did anything with a mouse since the last time this was asked, which is handy to find out what to play with. Asking clears the answer. Plugging in a new mouse counts as using it once.

Differences

  • This is a BlitzLLVM extension: the original has no such command.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
While Not KeyHit(1)
	Cls
	If MouseChanged() Then Text 10, 10, "The mouse was used"
	Flip
Wend

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally