Skip to content

LastJoyDevice

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

LastJoyDevice

LastJoyDevice:Int32

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

Description

Tells which joystick 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 joystick: " + LastJoyDevice()
	Flip
Wend

Related Commands

FlushJoy, GetJoy, JoyChanged, JoyDeviceConnected, JoyDeviceCount, JoyDeviceName, JoyDown, JoyHat

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally