# SetVirtualJoystickAlpha

## Description

Sets the transparency of the virtual joystick on screen. The virtual joystick is composed of two parts the inner movable part, and the outer static part. Alpha1 sets the transparency of the outer part in the range 0-255 with 255 being fully opaque. Alpha2 sets the transparency of the inner part in the range 0-255.

## Definition

SetVirtualJoystickAlpha( index, alpha1, alpha2 )

void agk::SetVirtualJoystickAlpha( UINT index, UINT alpha1, UINT alpha2 )

## Parameters

- index - The ID of the virtual joystick to set.
- alpha1 - The alpha value of the outer part of the joystick.
- alpha2 - The alpha value of the inner part of the joystick.