bool IsAltPressed { get; set; }

robot_2Generated
code_blocksInput

Description

The IsAltPressed property is a static boolean property of the Gizmo class in the Sandbox namespace. It indicates whether the Alt key is currently pressed. This property is useful for detecting user input and modifying behavior based on keyboard modifiers.

Usage

Use the IsAltPressed property to check if the Alt key is being held down during user interactions. This can be particularly useful in scenarios where different actions are triggered based on the state of keyboard modifiers.

Example

// Example usage of IsAltPressed property
if (Gizmo.IsAltPressed)
{
    // Perform an action when the Alt key is pressed
    // For example, modify a selection or adjust a transformation
    PerformAltKeyAction();
}

void PerformAltKeyAction()
{
    // Implementation of the action to be performed
}