From 0200c0e040356578f5a067160745f9225998d049 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 11 Jun 2021 20:14:43 -0400 Subject: [PATCH] sdl: Add Xbox Elite Controoller --- sdl2/Xbox One Elite Series 2 Controller.cfg | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 sdl2/Xbox One Elite Series 2 Controller.cfg diff --git a/sdl2/Xbox One Elite Series 2 Controller.cfg b/sdl2/Xbox One Elite Series 2 Controller.cfg new file mode 100644 index 0000000..425957a --- /dev/null +++ b/sdl2/Xbox One Elite Series 2 Controller.cfg @@ -0,0 +1,58 @@ +input_driver = "sdl2" +input_device = "XInput Controller" +input_device_display_name = "Microsoft Xbox Elite Series 2" + +# Hex vid:pid is found using "dmesg -w" or "tail -f /var/log/syslog" and converted to Decimal using http://www.binaryhexconverter.com/hex-to-decimal-converter +# Hex vid:pid = 045e:0b00 -> Decimal vid:pid = 1118:2816 +input_vendor_id = "1118" +input_product_id = "2816" + +input_b_btn = "0" +input_y_btn = "2" +input_select_btn = "4" +input_start_btn = "6" +input_up_btn = "11" +input_down_btn = "12" +input_left_btn = "13" +input_right_btn = "14" +input_a_btn = "1" +input_x_btn = "3" +input_l_btn = "9" +input_r_btn = "10" +input_l2_axis = "+4" +input_r2_axis = "+5" +input_l3_btn = "7" +input_r3_btn = "8" +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_b_btn_label = "A" +input_y_btn_label = "X" +input_select_btn_label = "Back" +input_start_btn_label = "Start" +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 = "B" +input_x_btn_label = "Y" +input_l_btn_label = "Left Bumper" +input_r_btn_label = "Right Bumper" +input_l2_axis_label = "Left Trigger" +input_r2_axis_label = "Right Trigger" +input_l3_btn_label = "Left Stick" +input_r3_btn_label = "Right Stick" +input_l_x_plus_axis_label = "Left Stick Right" +input_l_x_minus_axis_label = "Left Stick Left" +input_l_y_plus_axis_label = "Left Stick Down" +input_l_y_minus_axis_label = "Left Stick Up" +input_r_x_plus_axis_label = "Right Stick Right" +input_r_x_minus_axis_label = "Right Stick Left" +input_r_y_plus_axis_label = "Right Stick Down" +input_r_y_minus_axis_label = "Right Stick Up"