# SetVirtualButtonActive

## Description

Sets whether the virtual will capture mouse and touch events. If set to 0 it will not capture input and will not update its pressed state, it will return to 0 (up). This will not affect the virtual button's visibility, use SetVirtualButtonVisible to change if it is visible.

## Definition

SetVirtualButtonActive( index, active )

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

## Parameters

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