From 4661ef7c1f690426b6557f2ce9a1d87f6359861e Mon Sep 17 00:00:00 2001 From: antheas Date: Thu, 28 Dec 2023 18:23:02 +0200 Subject: [PATCH 1/3] Add dualsense edge controller and handheld daemon controller in udev --- udev/Handheld Daemon Controller.cfg | 30 +++++++++ ...ent DualSense Edge Wireless Controller.cfg | 65 +++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 udev/Handheld Daemon Controller.cfg create mode 100644 udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg diff --git a/udev/Handheld Daemon Controller.cfg b/udev/Handheld Daemon Controller.cfg new file mode 100644 index 000000000..2788b18fd --- /dev/null +++ b/udev/Handheld Daemon Controller.cfg @@ -0,0 +1,30 @@ +input_driver = "udev" +input_device = "Handheld Daemon Controller" +input_vendor_id = "21301" +input_product_id = "1" +input_b_btn = "0" +input_y_btn = "2" +input_select_btn = "6" +input_start_btn = "7" +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" +input_a_btn = "1" +input_x_btn = "3" +input_l_btn = "4" +input_r_btn = "5" +input_l2_axis = "+2" +input_r2_axis = "+5" +input_l3_btn = "9" +input_r3_btn = "10" +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 = "+3" +input_r_x_minus_axis = "-3" +input_r_y_plus_axis = "+4" +input_r_y_minus_axis = "-4" +input_gun_trigger_mbtn = "1" +input_gun_offscreen_shot_mbtn = "2" diff --git a/udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg b/udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg new file mode 100644 index 000000000..8ca1f5194 --- /dev/null +++ b/udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg @@ -0,0 +1,65 @@ +input_driver = "udev" +input_device_display_name = "DualSense Edge" +input_vendor_id = "1356" +input_product_id = "3570" + +# Real controller name +# input_device = "Sony Interactive Entertainment DualSense Edge Wireless Controller" +# Handheld Daemon name (controller emulator) +# input_device = "Emulated Sony DS5 Edge Controller" +# As it is expected more controller emulators for handheld devices +# will utilise the DS5E controller as a substiture, the name is left +# commented out. The vendor id/product id is unique to the edge. + +input_b_btn = "0" +input_y_btn = "3" +input_select_btn = "8" +input_start_btn = "9" +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" +input_a_btn = "1" +input_x_btn = "2" +input_l_btn = "4" +input_r_btn = "5" +input_l2_btn = "6" +input_r2_btn = "7" +input_l3_btn = "11" +input_r3_btn = "12" +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 = "+3" +input_r_x_minus_axis = "-3" +input_r_y_plus_axis = "+4" +input_r_y_minus_axis = "-4" +input_gun_trigger_mbtn = "1" +input_gun_offscreen_shot_mbtn = "2" + +input_b_btn_label = "Cross" +input_y_btn_label = "Square" +input_select_btn_label = "Create" +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" \ No newline at end of file From f2b523a90ce3816c9d2312591fba787c8dcf7623 Mon Sep 17 00:00:00 2001 From: antheas Date: Sat, 6 Jan 2024 18:28:46 +0200 Subject: [PATCH 2/3] add normal dualsense variant with dualsense in name --- ...tainment DualSense Wireless Controller.cfg | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 udev/Sony Interactive Entertainment DualSense Wireless Controller.cfg diff --git a/udev/Sony Interactive Entertainment DualSense Wireless Controller.cfg b/udev/Sony Interactive Entertainment DualSense Wireless Controller.cfg new file mode 100644 index 000000000..8008a923f --- /dev/null +++ b/udev/Sony Interactive Entertainment DualSense Wireless Controller.cfg @@ -0,0 +1,57 @@ +input_driver = "udev" +input_device_display_name = "DualSense" +input_device = "Sony Interactive Entertainment DualSense Wireless Controller" +input_vendor_id = "1356" +input_product_id = "3302" + +input_b_btn = "0" +input_y_btn = "3" +input_select_btn = "8" +input_start_btn = "9" +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" +input_a_btn = "1" +input_x_btn = "2" +input_l_btn = "4" +input_r_btn = "5" +input_l2_btn = "6" +input_r2_btn = "7" +input_l3_btn = "11" +input_r3_btn = "12" +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 = "+3" +input_r_x_minus_axis = "-3" +input_r_y_plus_axis = "+4" +input_r_y_minus_axis = "-4" +input_menu_toggle_btn = "10" + +input_b_btn_label = "Cross" +input_y_btn_label = "Square" +input_select_btn_label = "Create" +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_btn_label = "L2" +input_r2_btn_label = "R2" +input_l3_btn_label = "L3" +input_r3_btn_label = "R3" +input_l_x_plus_axis_label = "Left Analog Right" +input_l_x_minus_axis_label = "Left Analog Left" +input_l_y_plus_axis_label = "Left Analog Down" +input_l_y_minus_axis_label = "Left Analog Up" +input_r_x_plus_axis_label = "Right Analog Right" +input_r_x_minus_axis_label = "Right Analog Left" +input_r_y_plus_axis_label = "Right Analog Down" +input_r_y_minus_axis_label = "Right Analog Up" +input_menu_toggle_btn_label = "PS" \ No newline at end of file From f4cb1b6c2425bc8bb47ca7792de3b051d8bbfaa9 Mon Sep 17 00:00:00 2001 From: antheas Date: Sat, 6 Jan 2024 18:29:09 +0200 Subject: [PATCH 3/3] use proper name for controller, add missing menu button --- ...ent DualSense Edge Wireless Controller.cfg | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg b/udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg index 8ca1f5194..bbc4b2380 100644 --- a/udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg +++ b/udev/Sony Interactive Entertainment DualSense Edge Wireless Controller.cfg @@ -1,16 +1,9 @@ input_driver = "udev" input_device_display_name = "DualSense Edge" +input_device = "Sony Interactive Entertainment DualSense Edge Wireless Controller" input_vendor_id = "1356" input_product_id = "3570" -# Real controller name -# input_device = "Sony Interactive Entertainment DualSense Edge Wireless Controller" -# Handheld Daemon name (controller emulator) -# input_device = "Emulated Sony DS5 Edge Controller" -# As it is expected more controller emulators for handheld devices -# will utilise the DS5E controller as a substiture, the name is left -# commented out. The vendor id/product id is unique to the edge. - input_b_btn = "0" input_y_btn = "3" input_select_btn = "8" @@ -35,8 +28,7 @@ input_r_x_plus_axis = "+3" input_r_x_minus_axis = "-3" input_r_y_plus_axis = "+4" input_r_y_minus_axis = "-4" -input_gun_trigger_mbtn = "1" -input_gun_offscreen_shot_mbtn = "2" +input_menu_toggle_btn = "10" input_b_btn_label = "Cross" input_y_btn_label = "Square" @@ -50,16 +42,16 @@ 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_l2_btn_label = "L2" +input_r2_btn_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_l_x_plus_axis_label = "Left Analog Right" +input_l_x_minus_axis_label = "Left Analog Left" +input_l_y_plus_axis_label = "Left Analog Down" +input_l_y_minus_axis_label = "Left Analog Up" +input_r_x_plus_axis_label = "Right Analog Right" +input_r_x_minus_axis_label = "Right Analog Left" +input_r_y_plus_axis_label = "Right Analog Down" +input_r_y_minus_axis_label = "Right Analog Up" input_menu_toggle_btn_label = "PS" \ No newline at end of file