Skip to content

KeyboardChanged

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

KeyboardChanged

KeyboardChanged:Int32

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

Description

Tells if the user did anything with a keyboard 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 keyboard 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 KeyboardChanged() Then Text 10, 10, "The keyboard was used"
	Flip
Wend

Related Commands

KeyboardDeviceConnected, KeyboardDeviceCount, KeyboardDeviceName, LastKeyboardDevice

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally