# GetVirtualJoystickY

## Description

Returns the Y 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 GetVirtualJoystickY( index )

float agk::GetVirtualJoystickY( UINT index )

## Parameters

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