Skip to content

Updated PS2 port - #624

Open
Wolf3s wants to merge 2 commits into
MegaZeux:masterfrom
Wolf3s:master
Open

Wolf3s wants to merge 2 commits into
MegaZeux:masterfrom
Wolf3s:master

Conversation

@Wolf3s

@Wolf3s Wolf3s commented Aug 10, 2026

Copy link
Copy Markdown

This is a continuation of PS2 port of #405, This time being really tested on real hardware. Youtube video of the tests

Co-authored-by: Adrian Siekierka <kontakt@asie.pl>
Comment thread arch/ps2/pad.config Outdated
Comment on lines +18 to +42
joy[1,8]axis1 = act_l_left, act_l_right
joy[1,8]axis2 = act_l_up, act_l_down
joy[1,8]axis3 = act_r_left, act_r_right
joy[1,8]axis4 = act_r_up, act_r_down
joy[1,8].axis_lx = 1
joy[1,8].axis_ly = 2
joy[1,8].axis_rx = 3
joy[1,8].axis_ry = 4

joy[1,8]button1 = act_select
joy[1,8]button2 = act_lstick
joy[1,8]button3 = act_rstick
joy[1,8]button4 = act_start
joy[1,8]button5 = act_up
joy[1,8]button6 = act_right
joy[1,8]button7 = act_down
joy[1,8]button8 = act_left
joy[1,8]button9 = act_ltrigger
joy[1,8]button10 = act_rtrigger
joy[1,8]button11 = act_lshoulder
joy[1,8]button12 = act_rshoulder
joy[1,8]button13 = act_x
joy[1,8]button14 = act_a
joy[1,8]button15 = act_b
joy[1,8]button16 = act_y

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SDL2/SDL3 equivalent, assuming the SDL fork has a correct mapping string, should be more like what the Switch pad.config does (I haven't tested this):

gamepad.a = act_b
gamepad.b = act_a
gamepad.x = act_y
gamepad.y = act_x

As a stopgap, controller init can be fixed by adding this patch from the original PR: https://github.com/MegaZeux/megazeux/pull/405/changes#diff-ca18969c074b23ab1d18092138b5469335774b1e58fc3671f8262132aea487a7L1653-R1654

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will test it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants