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, which is typically used to access the console's main menu or dashboard.
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 responds to the user accessing the console's main menu or other system-level features.
Example
// Example of checking if the Guide button is pressed
if (Input.IsGamepadButtonDown(GamepadCode.Guide))
{
// Handle the Guide button press
OpenMainMenu();
}