Blitz3D Docs -> 2D - Category -> Input -> JoyType
JoyType ([port])
Parameters:
port = number of joystick port to check (optional)Description:
This command returns the type of joystick that is currently connected to the computer. It returns 0 if there is none, 1 for digital, and 2 for analog.Example:
; JoyType() example ; Check to see what stick is present - print the proper message Select JoyType() Case 0 Print "Sorry, no joystick attached to system!" Case 1 Print "Digital joystick is attached to system!" Case 2 Print "Analog joystick is attched to system!" End Select ; Wait for user to hit ESC While Not KeyHit(1) Wend
Comments
None.
Blitz3D Manual Forum
BlitzPlus Equivalent Command




