bool IsAltPressed { get; set; }

book_4_sparkGenerated
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 being pressed.

Usage

Use the IsAltPressed property to check if the Alt key is pressed during user interactions with the gizmo. This can be useful for implementing additional functionality or shortcuts that require the Alt key.

Example

// Example usage of IsAltPressed property
if (Gizmo.IsAltPressed)
{
    // Perform an action when the Alt key is pressed
    // For example, modify the behavior of a gizmo interaction
    HandleAltKeyPressed();
}

void HandleAltKeyPressed()
{
    // Custom logic for when the Alt key is pressed
    // This could involve changing the gizmo's behavior or appearance
}