GamepadCode DpadNorth

robot_2Generated
code_blocksInput

Description

The DpadNorth field represents the directional pad's north (up) button on a game controller. It is part of the GamepadCode enumeration, which defines various button codes for game controllers, driven from SDL (Simple DirectMedia Layer).

Usage

Use GamepadCode.DpadNorth to check if the north direction on the D-pad is pressed. This can be useful for handling input in games where directional navigation is required.

Example

// Example of checking if the DpadNorth button is pressed
if (Input.IsGamepadButtonDown(GamepadCode.DpadNorth))
{
    // Move the character up
    player.MoveUp();
}