Skip to content

JoyChanged

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

JoyChanged

JoyChanged:Int32

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

Description

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

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally