Skip to content

JoyDeviceName

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

JoyDeviceName

JoyDeviceName:String port:Int32
Parameter Mode Type Default Description
port In Int32 required The port to ask, counted from 0.

Returns: The name, or an empty string if no joystick has had that port.

Description

Tells the name of the joystick on a port, 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 joystick: " + JoyDeviceName(0)
Flip
WaitKey

Related Commands

JoyChanged, JoyDeviceConnected, JoyDeviceCount, JoyDown, JoyHat, JoyHit, JoyPitch, JoyRoll

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally