diff --git a/backends/keymapper/hardware-input.cpp b/backends/keymapper/hardware-input.cpp index 0b888a92eae..5ff07264cb6 100644 --- a/backends/keymapper/hardware-input.cpp +++ b/backends/keymapper/hardware-input.cpp @@ -267,6 +267,7 @@ const HardwareInputTableEntry defaultJoystickButtons[] = { { "JOY_DOWN", JOYSTICK_BUTTON_DPAD_DOWN, _s("D-pad Down") }, { "JOY_LEFT", JOYSTICK_BUTTON_DPAD_LEFT, _s("D-pad Left") }, { "JOY_RIGHT", JOYSTICK_BUTTON_DPAD_RIGHT, _s("D-pad Right") }, + { "JOY_CENTER", JOYSTICK_BUTTON_DPAD_CENTER, _s("D-pad Center") }, { nullptr, 0, nullptr } }; diff --git a/common/events.h b/common/events.h index b9dab2888a0..a976a31b229 100644 --- a/common/events.h +++ b/common/events.h @@ -158,7 +158,8 @@ enum JoystickButton { JOYSTICK_BUTTON_DPAD_UP, JOYSTICK_BUTTON_DPAD_DOWN, JOYSTICK_BUTTON_DPAD_LEFT, - JOYSTICK_BUTTON_DPAD_RIGHT + JOYSTICK_BUTTON_DPAD_RIGHT, + JOYSTICK_BUTTON_DPAD_CENTER }; /**