GAMEPAD_BUTTONS Enumeration

Controller button identifier flags.

GAMEPAD_BUTTONS values are used in a GAMEPAD_REPORT to indicate which buttons are currently pressed.

Syntax

typedef enum GAMEPAD_BUTTONS
{
    RIGHT_THUMBSTICK = 0x8000,
    LEFT_THUMBSTICK = 0x4000,
    RIGHT_SHOULDER = 0x2000,
    LEFT_SHOULDER = 0x1000,
    DPAD_RIGHT = 0x800,
    DPAD_LEFT = 0x400,
    DPAD_DOWN = 0x200,
    DPAD_UP = 0x100,
    Y = 0x80,
    X = 0x40,
    B = 0x20,
    A = 0x10,
    VIEW = 0x8,
    MENU = 0x4,
    NEXUS = 0x2,
    ENROLL = 0x1,
    NONE = 0
} GAMEPAD_BUTTONS, *PGAMEPAD_BUTTONS;  

Constants

Constant Description
RIGHT_THUMBSTICK The right thumbstick
LEFT_THUMBSTICK The left thumbstick
RIGHT_SHOULDER The right shoulder button
LEFT_SHOULDER The left shoulder button
DPAD_RIGHT The direction pad right button
DPAD_LEFT The direction pad left button
DPAD_DOWN The direction pad down button
DPAD_UP The direciton pad up button.
Y The Y button
X The X button
B The B button
A The A button
VIEW The View button
MENU The Menu button
NEXUS The Nexus button
ENROLL The Enroll button
NONE Value that indicates no buttons are currently pressed.

Requirements

Header: Declared in xtfinput.h.

Library: Use xtfinput.lib.