GamepadCode DpadEast

robot_2Generated
code_blocksInput

Description

The DpadEast field is a member of the GamepadCode enumeration within the Sandbox namespace. It represents the directional pad's east (right) button on a game controller. This field is part of the game controller codes driven from SDL (Simple DirectMedia Layer), which is a cross-platform development library designed to provide low-level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.

Usage

Use the DpadEast field to detect when the east (right) button on a game controller's directional pad is pressed. This can be useful for implementing navigation controls or other game mechanics that require directional input.

Example

// Example of checking if the DpadEast button is pressed
if (Input.IsGamepadButtonDown(GamepadCode.DpadEast))
{
    // Execute logic for when the DpadEast button is pressed
    MoveCharacterRight();
}