Skip to content

LastKeyboardDevice

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

LastKeyboardDevice

LastKeyboardDevice:Int32

Returns: The number of the keyboard, or -1 if none was used yet.

Description

Tells which keyboard the user used last.

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
	Text 10, 10, "Last keyboard: " + LastKeyboardDevice()
	Flip
Wend

Related Commands

KeyboardChanged, KeyboardDeviceConnected, KeyboardDeviceCount, KeyboardDeviceName

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally