Description
The Guide
field is a member of the GamepadCode
enumeration in the Sandbox namespace. It represents the Guide button on a game controller, commonly known as the "Home" or "Xbox" button on various gamepads. This button is typically used to access the main menu or dashboard of a gaming console or application.
Usage
Use the GamepadCode.Guide
field to check if the Guide button on a game controller is pressed. This can be useful for implementing functionality that requires interaction with the main menu or dashboard of your application.
Example
// Example of checking if the Guide button is pressed
if (Input.IsGamepadButtonDown(GamepadCode.Guide))
{
// Perform action when the Guide button is pressed
OpenMainMenu();
}