JoyCount

Category: Input

Back to System Functions


Signature

JoyCount()

Returns

Integer

Description

Returns the number of controller slots supported by the runtime.

Use JoyConnected to check whether a specific slot currently has a controller attached.

Example

Dim joy As Integer

For joy = 0 To JoyCount() - 1
    If JoyConnected(joy) Then
        End
    End If
Next joy