# SetVirtualJoystickActive

## Description

Sets whether the joystick will capture mouse and touch events. If set to 0 it will not capture input and will not update its X and Y values, they will return to 0. This will not affect the virtual joystick's visibility, use SetVirtualJoystickVisible to change if it is visible.

## Definition

SetVirtualJoystickActive( index, active )

void agk::SetVirtualJoystickActive( UINT index, int active )

## Parameters

- index - The ID of the virtual joystick to set.
- active - 1 to allow input, 0 to deactivate it.