Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MERGED] android: Merge Sony_DualShock_4_Controller.cfg #1149

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4f37887
android/Sony_DualShock_4_Controller.cfg - analog L2/R2 triggers
davidhedlund Jul 19, 2024
3c1f0fe
Update Sony_DualShock_4_Controller.cfg
davidhedlund Aug 1, 2024
d584441
Update Sony_DualShock_4_Controller.cfg
davidhedlund Aug 6, 2024
8e30ec4
Update Sony_DualShock_4_Controller_v2.cfg
davidhedlund Aug 6, 2024
0691407
android: Create Sony_DualShock_4_v2_Controller.cfg
davidhedlund Aug 6, 2024
fdef6cc
Delete android/Sony_DualShock_4_v2_Controller.cfg
davidhedlund Aug 6, 2024
d977bdd
Rename Sony_DualShock_4_Controller.cfg to Sony Computer Entertainment…
davidhedlund Aug 18, 2024
539184c
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Aug 20, 2024
1045ade
Delete android/Sony_DualShock_4_Controller_v2.cfg
davidhedlund Aug 23, 2024
21cd73c
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Aug 23, 2024
b6191bd
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Aug 23, 2024
88725fd
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Aug 23, 2024
1533e85
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Aug 24, 2024
3ce85ff
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Aug 25, 2024
cee1d03
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Aug 26, 2024
3364179
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Sep 4, 2024
35b3656
Update Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Sep 4, 2024
fe6448f
Delete android/Sony Computer Entertainment Wireless Controller.cfg
davidhedlund Sep 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions android/Sony_DualShock_4_Controller.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ input_a_btn = "97"
input_x_btn = "100"
input_l_btn = "102"
input_r_btn = "103"
input_l2_btn = "104"
input_r2_btn = "105"
# RetroArch's in-app feature to create autoconfig files is flawed (https://github.com/libretro/RetroArch/issues/6920) and will attempt to create the 2 lines :
# input_l2_btn = "104"
# input_r2_btn = "105"
# Those 2 lines are a downgrade from the 2 following lines (copied from Sony_DualShock_4_Controller_v2.cfg and they are working with a PS4 v1 controller called Datafrog 02 (https://github.com/libretro/retroarch-joypad-autoconfig/pull/1134)) which additionally allow l2/r2 to be polled as analog axises :
input_l2_axis = "+6"
input_r2_axis = "+7"
input_l3_btn = "106"
input_r3_btn = "107"
input_l_x_plus_axis = "+0"
Expand All @@ -27,7 +31,7 @@ input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"
input_menu_toggle_btn = "109"
input_menu_toggle_btn = "110"

input_b_btn_label = "Cross"
input_y_btn_label = "Square"
Expand All @@ -37,12 +41,12 @@ input_up_btn_label = "D-Pad Up"
input_down_btn_label = "D-Pad Down"
input_left_btn_label = "D-Pad Left"
input_right_btn_label = "D-Pad Right"
input_a_btn_label = "Circle"
input_a_btn_label = "Circle"n
input_x_btn_label = "Triangle"
input_l_btn_label = "L1"
input_r_btn_label = "R1"
input_l2_btn_label = "L2"
input_r2_btn_label = "R2"
input_l2_axis_label = "L2"
input_r2_axis_label = "R2"
input_l3_btn_label = "L3"
input_r3_btn_label = "R3"
input_l_x_plus_axis_label = "Left Analog X+"
Expand All @@ -53,4 +57,4 @@ input_r_x_plus_axis_label = "Right Analog X+"
input_r_x_minus_axis_label = "Right Analog X-"
input_r_y_plus_axis_label = "Right Analog Y+"
input_r_y_minus_axis_label = "Right Analog Y-"
input_menu_toggle_label = "Touchpad"
input_menu_toggle_label = "PS"
4 changes: 2 additions & 2 deletions android/Sony_DualShock_4_Controller_v2.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"
input_menu_toggle_btn = "109"
input_menu_toggle_btn = "110"

input_b_btn_label = "Cross"
input_y_btn_label = "Square"
Expand All @@ -53,4 +53,4 @@ input_r_x_plus_axis_label = "Right Analog X+"
input_r_x_minus_axis_label = "Right Analog X-"
input_r_y_plus_axis_label = "Right Analog Y+"
input_r_y_minus_axis_label = "Right Analog Y-"
input_menu_toggle_btn_label = "Touchpad"
input_menu_toggle_btn_label = "PS"
56 changes: 56 additions & 0 deletions android/Sony_DualShock_4_v2_Controller.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
input_driver = "android"
input_device = "Sony Interactive Entertainment Wireless Controller"
input_device_display_name = "Sony DualShock 4 Controller (v2)"
input_vendor_id = "1356"
input_product_id = "2508"
input_b_btn = "96"
input_y_btn = "99"
input_select_btn = "4"
input_start_btn = "108"
input_up_btn = "h0up"
input_down_btn = "h0down"
input_left_btn = "h0left"
input_right_btn = "h0right"
input_a_btn = "97"
input_x_btn = "100"
input_l_btn = "102"
input_r_btn = "103"
input_l2_axis = "+6"
input_r2_axis = "+7"
input_l3_btn = "106"
input_r3_btn = "107"
input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"
input_menu_toggle_btn = "110"

input_b_btn_label = "Cross"
input_y_btn_label = "Square"
input_select_btn_label = "Share"
input_start_btn_label = "Options"
input_up_btn_label = "D-Pad Up"
input_down_btn_label = "D-Pad Down"
input_left_btn_label = "D-Pad Left"
input_right_btn_label = "D-Pad Right"
input_a_btn_label = "Circle"
input_x_btn_label = "Triangle"
input_l_btn_label = "L1"
input_r_btn_label = "R1"
input_l2_axis_label = "L2"
input_r2_axis_label = "R2"
input_l3_btn_label = "L3"
input_r3_btn_label = "R3"
input_l_x_plus_axis_label = "Left Analog X+"
input_l_x_minus_axis_label = "Left Analog X-"
input_l_y_plus_axis_label = "Left Analog Y+"
input_l_y_minus_axis_label = "Left Analog Y-"
input_r_x_plus_axis_label = "Right Analog X+"
input_r_x_minus_axis_label = "Right Analog X-"
input_r_y_plus_axis_label = "Right Analog Y+"
input_r_y_minus_axis_label = "Right Analog Y-"
input_menu_toggle_btn_label = "PS"
Loading