레이라이브에서 게임패드에 대한 enum은 다음과 같이 정의되어 있다.

Raylib Button Action Mapping은 이를 이용하여 wrapping 한 것이다.

// Gamepad buttons
typedef enum {
    GAMEPAD_BUTTON_UNKNOWN = 0,         // Unknown button, just for error checking
    GAMEPAD_BUTTON_LEFT_FACE_UP,        // 방향키 위, Gamepad left DPAD up button
    GAMEPAD_BUTTON_LEFT_FACE_RIGHT,     // 방향키 오른쪽, Gamepad left DPAD right button
    GAMEPAD_BUTTON_LEFT_FACE_DOWN,      // 방향키 아래, Gamepad left DPAD down button
    GAMEPAD_BUTTON_LEFT_FACE_LEFT,      // 방향키 왼쪽, Gamepad left DPAD left button
    GAMEPAD_BUTTON_RIGHT_FACE_UP,       // Y키, Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)
    GAMEPAD_BUTTON_RIGHT_FACE_RIGHT,    // X키, Gamepad right button right (i.e. PS3: Square, Xbox: X)
    GAMEPAD_BUTTON_RIGHT_FACE_DOWN,     // A키, Gamepad right button down (i.e. PS3: Cross, Xbox: A)
    GAMEPAD_BUTTON_RIGHT_FACE_LEFT,     // B키, Gamepad right button left (i.e. PS3: Circle, Xbox: B)
    GAMEPAD_BUTTON_LEFT_TRIGGER_1,      // LB키, Gamepad top/back trigger left (first), it could be a trailing button
    GAMEPAD_BUTTON_LEFT_TRIGGER_2,      // LT키, Gamepad top/back trigger left (second), it could be a trailing button
    GAMEPAD_BUTTON_RIGHT_TRIGGER_1,     // RB키, Gamepad top/back trigger right (one), it could be a trailing button
    GAMEPAD_BUTTON_RIGHT_TRIGGER_2,     // RT키, Gamepad top/back trigger right (second), it could be a trailing button
    GAMEPAD_BUTTON_MIDDLE_LEFT,         // 셀렉트키, Gamepad center buttons, left one (i.e. PS3: Select)
    GAMEPAD_BUTTON_MIDDLE,              // 홈키, Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)
    GAMEPAD_BUTTON_MIDDLE_RIGHT,        // 스타트키, Gamepad center buttons, right one (i.e. PS3: Start)
    GAMEPAD_BUTTON_LEFT_THUMB,          // 왼쪽 조이스틱 누르기, Gamepad joystick pressed button left
    GAMEPAD_BUTTON_RIGHT_THUMB          // 오른쪽 조이스틱 누르기, Gamepad joystick pressed button right
} GamepadButton;
 
// Gamepad axis
typedef enum {
    GAMEPAD_AXIS_LEFT_X        = 0,     // 왼쪽스틱 수평, Gamepad left stick X axis
    GAMEPAD_AXIS_LEFT_Y        = 1,     // 왼쪽스틱 수직, Gamepad left stick Y axis
    GAMEPAD_AXIS_RIGHT_X       = 2,     // 오른스틱 수평, Gamepad right stick X axis
    GAMEPAD_AXIS_RIGHT_Y       = 3,     // 오른스틱 수직, Gamepad right stick Y axis
    GAMEPAD_AXIS_LEFT_TRIGGER  = 4,     // 트리거, 뭔지 모르겠다. Gamepad back trigger left, pressure level: [1..-1]
    GAMEPAD_AXIS_RIGHT_TRIGGER = 5      // Gamepad back trigger right, pressure level: [1..-1]
} GamepadAxis;