static bool Released( string action )

robot_2Generated
code_blocksInput

Description

The Released method in the Sandbox.Input class checks if a specific input action has been released. This method is useful for detecting when a player has stopped pressing a button or key associated with a given action.

Usage

To use the Released method, pass the name of the action you want to check as a string parameter. The method will return true if the action was released during the current frame, otherwise it will return false.

Example

// Example usage of the Released method
if (Input.Released("Jump"))
{
    // Execute logic when the "Jump" action is released
    PerformJumpReleaseAction();
}