Skip to content

MouseDeviceName

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

MouseDeviceName

MouseDeviceName:String device:Int32
Parameter Mode Type Default Description
device In Int32 required The mouse to ask, counted from 0 in the order they were seen.

Returns: The name, or an empty string if there is no mouse with that number.

Description

Tells the name of a mouse, as the system gives it.

Differences

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

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Cls
Text 10, 10, "First mouse: " + MouseDeviceName(0)
Flip
WaitKey

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally