static void Clear( string action )

robot_2Generated
code_blocksInput

Description

The Clear method in the Sandbox.Input class is used to reset the state of a specific input action. This method is useful when you want to programmatically clear an action's state, ensuring that it is no longer considered active or pressed.

Usage

To use the Clear method, call it with the name of the action you wish to clear. This will reset the state of the specified action, making it inactive.

Example

// Example of using the Clear method

// Clear the "Jump" action
Input.Clear("Jump");

// After calling this, the "Jump" action will no longer be active.