# GetVirtualJoystickX

## Description

Returns the X value of the virtual joystick at the given index. This will be in the range -1.0 to 1.0 with 0 being centered. When the user is not interacting with the virtual joystick this will return 0.

## Definition

float GetVirtualJoystickX( index )

float agk::GetVirtualJoystickX( UINT index )

## Parameters

- index - The ID of the virtual joystick to check.