mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-07 05:03:35 +02:00
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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JvJR8oJNSCimCM9KXVLjfq
This commit is contained in:
co-authored by
Claude Opus 5
parent
b115206a66
commit
eb1bc34123
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user