Map the right analog stick by default on Android pads

The generic Android pad map and the Retroid map were the only pad
defaults without it, so the right stick did nothing until mapped by
hand. Uses the same axes and directions as the desktop pad default.

Fixes #21591

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01JvJR8oJNSCimCM9KXVLjfq
This commit is contained in:
Henrik RydgårdandClaude Opus 5 committed 2026-09-04 13:10:54 -06:00
1 parent b115206a66
commit eb1bc34123
1 file changed
+8
+8
View File
@@ -235,6 +235,10 @@ static const DefMappingStruct defaultRetroidControllerMap[] = {
{VIRTKEY_AXIS_X_MAX, JOYSTICK_AXIS_X, +1},
{VIRTKEY_AXIS_Y_MIN, JOYSTICK_AXIS_Y, +1},
{VIRTKEY_AXIS_Y_MAX, JOYSTICK_AXIS_Y, -1},
{VIRTKEY_AXIS_RIGHT_X_MIN, JOYSTICK_AXIS_Z, -1},
{VIRTKEY_AXIS_RIGHT_X_MAX, JOYSTICK_AXIS_Z, +1},
{VIRTKEY_AXIS_RIGHT_Y_MIN, JOYSTICK_AXIS_RZ, +1},
{VIRTKEY_AXIS_RIGHT_Y_MAX, JOYSTICK_AXIS_RZ, -1},
};
static const DefMappingStruct defaultPadMapAndroid[] = {
@@ -266,6 +270,10 @@ static const DefMappingStruct defaultPadMapAndroid[] = {
{VIRTKEY_AXIS_X_MAX, JOYSTICK_AXIS_X, +1},
{VIRTKEY_AXIS_Y_MIN, JOYSTICK_AXIS_Y, +1},
{VIRTKEY_AXIS_Y_MAX, JOYSTICK_AXIS_Y, -1},
{VIRTKEY_AXIS_RIGHT_X_MIN, JOYSTICK_AXIS_Z, -1},
{VIRTKEY_AXIS_RIGHT_X_MAX, JOYSTICK_AXIS_Z, +1},
{VIRTKEY_AXIS_RIGHT_Y_MIN, JOYSTICK_AXIS_RZ, +1},
{VIRTKEY_AXIS_RIGHT_Y_MAX, JOYSTICK_AXIS_RZ, -1},
};
static const DefMappingStruct defaultPadMap[] = {