# GetRawJoystickConnected

## Description

Returns 1 if the specified joystick is connected, 0 if not. This only applies to joysticks that were plugged in when the app started, plugging in a new joystick after the app has started will not be detected. Use GetRawJoystickExists to find out which joysticks were detected at startup. This command currently does not work on Mac.

## Definition

integer GetRawJoystickConnected( index )

int agk::GetRawJoystickConnected( UINT index )

## Parameters

- index - The ID of the joystick to check.