From 50d14132d96a93711b9af6e0efbc522f345d0273 Mon Sep 17 00:00:00 2001 From: Cristian Delgado Date: Wed, 25 Dec 2024 13:50:56 -0600 Subject: [PATCH 1/7] Added gamepad profiles for STK-7039RG Gamepad profiles related with the STK-7039RG --- udev/7039RG.cfg | 28 ++++++++++++++++++++++++++++ udev/ZhiXu Gamepad.cfg | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 udev/7039RG.cfg create mode 100644 udev/ZhiXu Gamepad.cfg diff --git a/udev/7039RG.cfg b/udev/7039RG.cfg new file mode 100644 index 000000000..7732eda65 --- /dev/null +++ b/udev/7039RG.cfg @@ -0,0 +1,28 @@ +input_driver = "udev" +input_device = "7039RG" +input_vendor_id = "6473" +input_product_id = "1026" +input_b_btn = "1" +input_y_btn = "4" +input_select_btn = "10" +input_start_btn = "11" +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" +input_a_btn = "0" +input_x_btn = "3" +input_l_btn = "6" +input_r_btn = "7" +input_l2_btn = "8" +input_r2_btn = "9" +input_l3_btn = "13" +input_r3_btn = "14" +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" diff --git a/udev/ZhiXu Gamepad.cfg b/udev/ZhiXu Gamepad.cfg new file mode 100644 index 000000000..09f82c86c --- /dev/null +++ b/udev/ZhiXu Gamepad.cfg @@ -0,0 +1,28 @@ +input_driver = "udev" +input_device = "ZhiXu Gamepad" +input_vendor_id = "121" +input_product_id = "6172" +input_b_btn = "1" +input_y_btn = "4" +input_select_btn = "10" +input_start_btn = "11" +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" +input_a_btn = "0" +input_x_btn = "3" +input_l_btn = "6" +input_r_btn = "7" +input_l2_btn = "8" +input_r2_btn = "9" +input_l3_btn = "13" +input_r3_btn = "14" +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" From 7d5ae416e6dfea9b7b4f09a0d8af2948db8c080d Mon Sep 17 00:00:00 2001 From: Cristian Delgado Date: Wed, 25 Dec 2024 14:55:10 -0600 Subject: [PATCH 2/7] Update documentation for 7039RG.cfg Added a small manual --- udev/7039RG.cfg | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/udev/7039RG.cfg b/udev/7039RG.cfg index 7732eda65..890a30273 100644 --- a/udev/7039RG.cfg +++ b/udev/7039RG.cfg @@ -1,3 +1,57 @@ +# SAITEK STK-7039RG Controller +# Features: +# Bluetooth and wired connection +# RGB Color swith +# Nintendo switch, Android, XBox and Wired modes. +# 6 Axis gyro. +# +# This profile is related to Android/Linux mode. +# +# This controller can switch to differente modes pressing Home button + Y,X,A buttons or Connected via USB C cable: +# +# Pairing Mode +# Nintendo Switch Mode +# Press simultaneusly HOME + Y Nintendo Switch Mode, Indicator LEDS *--- +# Wake up and reconnect: Press HOME for 3 seconds. +# +# Android/Linux Mode +# Press simultaneusly HOME + X Android Mode, Indicator LEDS *--* +# Scan & connect to STK-7039RG +# Reconnect: Press HOME until power on +# +# XBOX Mode +# Press simultaneusly HOME + A, XBOX Wireless Mode, Indicator LEDS ***- +# Scan & connect to Xbox Wireless Controller. +# Reconnect: Press HOME until power on +# +# PC Wired mode: +# Using a USB C cable, Pressing HOME button switch to XINPUT or DINPUT modes +# XINPUT Mode, Indicator LEDS ***- +# DINPUT Mode, Indicator LEDS *--* +# +# TURBO/AUTO Mode, can be set for A,B,X,Y,L,ZL,R,ZL buttons +# Enable/disable: +# 1. Press TURBO button and the function simultaneously +# 2. If you press again the same combination turns into AUTO firing mode. +# 3. If you press again the same combination turn off AUTO firinf mode. +# Adjust TURBO speed: +# 1. Press TURBO button simultaneusly with directional up/down. +# 2. Press TURBO button + UP increases speed +# 3. Press TURBO button + DOWN decreases speed +# Clear TURBO/AUTO +# 1. Press TURBO for 5 seconds, wait the LED 1,2,3,4 light and turn to flashes together with 1 second's vibration. +# Then all TURBO functions will be clear +# +# Adjust vibration intensity +# 1. Press L,LZ,R,ZR simultaneusly for 5 seconds. Release when vibrate +# 2. The vibration intensity will switch intensity from strongest to none on each repetition. +# RGB Light control +# Light button is located down right of the right analog stick +# Short press switch color modes. +# Long press turn on/off + +input_devie_display_name="SAITEK STK-7039RG" + input_driver = "udev" input_device = "7039RG" input_vendor_id = "6473" From 03e202b75d0efd396d2e4d4765cef66785f75c78 Mon Sep 17 00:00:00 2001 From: Cristian Delgado Date: Wed, 25 Dec 2024 14:58:32 -0600 Subject: [PATCH 3/7] Update ZhiXu Gamepad.cfg Added a small manual for STK-7039RG Gamepad, identified as ZhiXu Gamepad when using as wired mode. --- udev/ZhiXu Gamepad.cfg | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/udev/ZhiXu Gamepad.cfg b/udev/ZhiXu Gamepad.cfg index 09f82c86c..0a934455d 100644 --- a/udev/ZhiXu Gamepad.cfg +++ b/udev/ZhiXu Gamepad.cfg @@ -1,3 +1,56 @@ +# SAITEK STK-7039RG Controller +# Features: +# Bluetooth and wired connection +# RGB Color swith +# Nintendo switch, Android, XBox and Wired modes. +# 6 Axis gyro. +# +# This profile is related to ZhiXu mode, mostly always wired. +# +# This controller can switch to differente modes pressing Home button + Y,X,A buttons or Connected via USB C cable: +# +# Pairing Mode +# Nintendo Switch Mode +# Press simultaneusly HOME + Y Nintendo Switch Mode, Indicator LEDS *--- +# Wake up and reconnect: Press HOME for 3 seconds. +# +# Android/Linux Mode +# Press simultaneusly HOME + X Android Mode, Indicator LEDS *--* +# Scan & connect to STK-7039RG +# Reconnect: Press HOME until power on +# +# XBOX Mode +# Press simultaneusly HOME + A, XBOX Wireless Mode, Indicator LEDS ***- +# Scan & connect to Xbox Wireless Controller. +# Reconnect: Press HOME until power on +# +# PC Wired mode: +# Using a USB C cable, Pressing HOME button switch to XINPUT or DINPUT modes +# XINPUT Mode, Indicator LEDS ***- +# DINPUT Mode, Indicator LEDS *--* +# +# TURBO/AUTO Mode, can be set for A,B,X,Y,L,ZL,R,ZL buttons +# Enable/disable: +# 1. Press TURBO button and the function simultaneously +# 2. If you press again the same combination turns into AUTO firing mode. +# 3. If you press again the same combination turn off AUTO firinf mode. +# Adjust TURBO speed: +# 1. Press TURBO button simultaneusly with directional up/down. +# 2. Press TURBO button + UP increases speed +# 3. Press TURBO button + DOWN decreases speed +# Clear TURBO/AUTO +# 1. Press TURBO for 5 seconds, wait the LED 1,2,3,4 light and turn to flashes together with 1 second's vibration. +# Then all TURBO functions will be clear +# +# Adjust vibration intensity +# 1. Press L,LZ,R,ZR simultaneusly for 5 seconds. Release when vibrate +# 2. The vibration intensity will switch intensity from strongest to none on each repetition. +# RGB Light control +# Light button is located down right of the right analog stick +# Short press switch color modes. +# Long press turn on/off + + input_driver = "udev" input_device = "ZhiXu Gamepad" input_vendor_id = "121" From e00d66bfd3e099c038b6cd0391d93315932a7e06 Mon Sep 17 00:00:00 2001 From: Cristian Delgado Date: Fri, 27 Dec 2024 14:37:42 -0600 Subject: [PATCH 4/7] Added SHANWAN Android Gamepad profile for udev --- udev/SHANWAN Android Gamepad.cfg | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 udev/SHANWAN Android Gamepad.cfg diff --git a/udev/SHANWAN Android Gamepad.cfg b/udev/SHANWAN Android Gamepad.cfg new file mode 100644 index 000000000..743aeff1f --- /dev/null +++ b/udev/SHANWAN Android Gamepad.cfg @@ -0,0 +1,53 @@ +# This is for the Gamepads Using SHANWAN controllers you can add more if you found the same configuration +# +# Controllers: +# Acteck g100, +# +# +# MODES +# You can switch modes pressing for 5 minutes the mode button +# Android/Linux +# LED Indicator - +# - +# * +# * +# PS3/PC +# LED Indicator * +# - +# * +# - +# PC/Xbox +# LED Indicator * +# * +# - +# - + +input_driver = "udev" +input_device = "SHANWAN Android Gamepad" +input_vendor_id = "9571" +input_product_id = "1318" +input_b_btn = "1" +input_y_btn = "4" +input_select_btn = "10" +input_start_btn = "11" +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" +input_a_btn = "0" +input_x_btn = "3" +input_l_btn = "6" +input_r_btn = "7" +input_l2_btn = "8" +input_r2_btn = "9" +input_l3_btn = "13" +input_r3_btn = "14" +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_btn = "0" +input_r_y_plus_axis = "+3" +input_r_y_minus_axis = "-3" +input_r_x_minus_axis = "-2" From f52dd80a4b26b01916915769896b79b9822dabbc Mon Sep 17 00:00:00 2001 From: Cristian Delgado Date: Fri, 27 Dec 2024 14:51:31 -0600 Subject: [PATCH 5/7] Added Afterglow Prismatic Wired Controller profile --- udev/Afterglow Prismatic Wired Controller.cfg | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 udev/Afterglow Prismatic Wired Controller.cfg diff --git a/udev/Afterglow Prismatic Wired Controller.cfg b/udev/Afterglow Prismatic Wired Controller.cfg new file mode 100644 index 000000000..1ab8bd759 --- /dev/null +++ b/udev/Afterglow Prismatic Wired Controller.cfg @@ -0,0 +1,28 @@ +input_driver = "udev" +input_device = "Afterglow Prismatic Wired Controller" +input_vendor_id = "3695" +input_product_id = "313" +input_b_btn = "1" +input_y_btn = "3" +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 = "0" +input_x_btn = "2" +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" From 264bddac27f72144272cb044e21d4bcaa1a485a2 Mon Sep 17 00:00:00 2001 From: Cristian Delgado Date: Fri, 27 Dec 2024 15:00:06 -0600 Subject: [PATCH 6/7] Fixed some file permissions, were too permisive as executables --- udev/8BitDo_Ultimate_C_Wired_Controller.cfg | 0 udev/8BitDo_Ultimate_Wired_Controller.cfg | 0 udev/8BitDo_Ultimate_wireless_Controller.cfg | 0 udev/8BitDo_Zero2_gamepad_BT.cfg | 0 udev/PDP Fight Pad Pro.cfg | 0 udev/Pokken Controller.cfg | 0 udev/QanBa_Q4RAF_Arcade_Stick.cfg | 0 udev/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg | 0 udev/Xbox_360_Wireless_RF_Module_Rev_VA.cfg | 0 9 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 udev/8BitDo_Ultimate_C_Wired_Controller.cfg mode change 100755 => 100644 udev/8BitDo_Ultimate_Wired_Controller.cfg mode change 100755 => 100644 udev/8BitDo_Ultimate_wireless_Controller.cfg mode change 100755 => 100644 udev/8BitDo_Zero2_gamepad_BT.cfg mode change 100755 => 100644 udev/PDP Fight Pad Pro.cfg mode change 100755 => 100644 udev/Pokken Controller.cfg mode change 100755 => 100644 udev/QanBa_Q4RAF_Arcade_Stick.cfg mode change 100755 => 100644 udev/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg mode change 100755 => 100644 udev/Xbox_360_Wireless_RF_Module_Rev_VA.cfg diff --git a/udev/8BitDo_Ultimate_C_Wired_Controller.cfg b/udev/8BitDo_Ultimate_C_Wired_Controller.cfg old mode 100755 new mode 100644 diff --git a/udev/8BitDo_Ultimate_Wired_Controller.cfg b/udev/8BitDo_Ultimate_Wired_Controller.cfg old mode 100755 new mode 100644 diff --git a/udev/8BitDo_Ultimate_wireless_Controller.cfg b/udev/8BitDo_Ultimate_wireless_Controller.cfg old mode 100755 new mode 100644 diff --git a/udev/8BitDo_Zero2_gamepad_BT.cfg b/udev/8BitDo_Zero2_gamepad_BT.cfg old mode 100755 new mode 100644 diff --git a/udev/PDP Fight Pad Pro.cfg b/udev/PDP Fight Pad Pro.cfg old mode 100755 new mode 100644 diff --git a/udev/Pokken Controller.cfg b/udev/Pokken Controller.cfg old mode 100755 new mode 100644 diff --git a/udev/QanBa_Q4RAF_Arcade_Stick.cfg b/udev/QanBa_Q4RAF_Arcade_Stick.cfg old mode 100755 new mode 100644 diff --git a/udev/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg b/udev/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg old mode 100755 new mode 100644 diff --git a/udev/Xbox_360_Wireless_RF_Module_Rev_VA.cfg b/udev/Xbox_360_Wireless_RF_Module_Rev_VA.cfg old mode 100755 new mode 100644 From 6684186578ae6cbd7398e8b84adbe966d00b3f9d Mon Sep 17 00:00:00 2001 From: Cristian Delgado Date: Fri, 27 Dec 2024 15:09:04 -0600 Subject: [PATCH 7/7] fixed permissions for config files, lot of files were marked as executables --- android/8BitDo_SN30_Pro_for_Android.cfg | 0 android/8BitDo_Zero2_gamepad_BT.cfg | 0 android/PDP Fight Pad Pro.cfg | 0 android/Pokken Controller.cfg | 0 .../SPEEDLINK COMPETITION PRO Game Controller for Android .cfg | 0 android/Tronsmart.cfg | 0 dinput/8BitDo_SN30_Pro_for_Android.cfg | 0 dinput/8BitDo_Ultimate_Wired_Controller.cfg | 0 dinput/8BitDo_Ultimate_wireless_Controller.cfg | 0 dinput/8Bitdo_N64_Modkit.cfg | 0 dinput/MICREAL Wireless SNES Controller.cfg | 0 dinput/Mayflash_SS_USB_Adapter.cfg | 0 dinput/PDP Fight Pad Pro.cfg | 0 dinput/Pokken Controller.cfg | 0 dinput/Raphnet Dreamcast Controller to USB Adapter (v2).cfg | 0 dinput/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg | 0 hid/8BitDo_Ultimate_Wired_Controller.cfg | 0 hid/8BitDo_Ultimate_wireless_Controller.cfg | 0 hid/8BitDo_Zero2_gamepad_BT.cfg | 0 hid/PDP Fight Pad Pro.cfg | 0 hid/Pokken Controller.cfg | 0 sdl2/8BitDo_Ultimate_C_Wired_Controller.cfg | 0 sdl2/PDP Fight Pad Pro.cfg | 0 sdl2/Pokken Controller.cfg | 0 24 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 android/8BitDo_SN30_Pro_for_Android.cfg mode change 100755 => 100644 android/8BitDo_Zero2_gamepad_BT.cfg mode change 100755 => 100644 android/PDP Fight Pad Pro.cfg mode change 100755 => 100644 android/Pokken Controller.cfg mode change 100755 => 100644 android/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg mode change 100755 => 100644 android/Tronsmart.cfg mode change 100755 => 100644 dinput/8BitDo_SN30_Pro_for_Android.cfg mode change 100755 => 100644 dinput/8BitDo_Ultimate_Wired_Controller.cfg mode change 100755 => 100644 dinput/8BitDo_Ultimate_wireless_Controller.cfg mode change 100755 => 100644 dinput/8Bitdo_N64_Modkit.cfg mode change 100755 => 100644 dinput/MICREAL Wireless SNES Controller.cfg mode change 100755 => 100644 dinput/Mayflash_SS_USB_Adapter.cfg mode change 100755 => 100644 dinput/PDP Fight Pad Pro.cfg mode change 100755 => 100644 dinput/Pokken Controller.cfg mode change 100755 => 100644 dinput/Raphnet Dreamcast Controller to USB Adapter (v2).cfg mode change 100755 => 100644 dinput/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg mode change 100755 => 100644 hid/8BitDo_Ultimate_Wired_Controller.cfg mode change 100755 => 100644 hid/8BitDo_Ultimate_wireless_Controller.cfg mode change 100755 => 100644 hid/8BitDo_Zero2_gamepad_BT.cfg mode change 100755 => 100644 hid/PDP Fight Pad Pro.cfg mode change 100755 => 100644 hid/Pokken Controller.cfg mode change 100755 => 100644 sdl2/8BitDo_Ultimate_C_Wired_Controller.cfg mode change 100755 => 100644 sdl2/PDP Fight Pad Pro.cfg mode change 100755 => 100644 sdl2/Pokken Controller.cfg diff --git a/android/8BitDo_SN30_Pro_for_Android.cfg b/android/8BitDo_SN30_Pro_for_Android.cfg old mode 100755 new mode 100644 diff --git a/android/8BitDo_Zero2_gamepad_BT.cfg b/android/8BitDo_Zero2_gamepad_BT.cfg old mode 100755 new mode 100644 diff --git a/android/PDP Fight Pad Pro.cfg b/android/PDP Fight Pad Pro.cfg old mode 100755 new mode 100644 diff --git a/android/Pokken Controller.cfg b/android/Pokken Controller.cfg old mode 100755 new mode 100644 diff --git a/android/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg b/android/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg old mode 100755 new mode 100644 diff --git a/android/Tronsmart.cfg b/android/Tronsmart.cfg old mode 100755 new mode 100644 diff --git a/dinput/8BitDo_SN30_Pro_for_Android.cfg b/dinput/8BitDo_SN30_Pro_for_Android.cfg old mode 100755 new mode 100644 diff --git a/dinput/8BitDo_Ultimate_Wired_Controller.cfg b/dinput/8BitDo_Ultimate_Wired_Controller.cfg old mode 100755 new mode 100644 diff --git a/dinput/8BitDo_Ultimate_wireless_Controller.cfg b/dinput/8BitDo_Ultimate_wireless_Controller.cfg old mode 100755 new mode 100644 diff --git a/dinput/8Bitdo_N64_Modkit.cfg b/dinput/8Bitdo_N64_Modkit.cfg old mode 100755 new mode 100644 diff --git a/dinput/MICREAL Wireless SNES Controller.cfg b/dinput/MICREAL Wireless SNES Controller.cfg old mode 100755 new mode 100644 diff --git a/dinput/Mayflash_SS_USB_Adapter.cfg b/dinput/Mayflash_SS_USB_Adapter.cfg old mode 100755 new mode 100644 diff --git a/dinput/PDP Fight Pad Pro.cfg b/dinput/PDP Fight Pad Pro.cfg old mode 100755 new mode 100644 diff --git a/dinput/Pokken Controller.cfg b/dinput/Pokken Controller.cfg old mode 100755 new mode 100644 diff --git a/dinput/Raphnet Dreamcast Controller to USB Adapter (v2).cfg b/dinput/Raphnet Dreamcast Controller to USB Adapter (v2).cfg old mode 100755 new mode 100644 diff --git a/dinput/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg b/dinput/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg old mode 100755 new mode 100644 diff --git a/hid/8BitDo_Ultimate_Wired_Controller.cfg b/hid/8BitDo_Ultimate_Wired_Controller.cfg old mode 100755 new mode 100644 diff --git a/hid/8BitDo_Ultimate_wireless_Controller.cfg b/hid/8BitDo_Ultimate_wireless_Controller.cfg old mode 100755 new mode 100644 diff --git a/hid/8BitDo_Zero2_gamepad_BT.cfg b/hid/8BitDo_Zero2_gamepad_BT.cfg old mode 100755 new mode 100644 diff --git a/hid/PDP Fight Pad Pro.cfg b/hid/PDP Fight Pad Pro.cfg old mode 100755 new mode 100644 diff --git a/hid/Pokken Controller.cfg b/hid/Pokken Controller.cfg old mode 100755 new mode 100644 diff --git a/sdl2/8BitDo_Ultimate_C_Wired_Controller.cfg b/sdl2/8BitDo_Ultimate_C_Wired_Controller.cfg old mode 100755 new mode 100644 diff --git a/sdl2/PDP Fight Pad Pro.cfg b/sdl2/PDP Fight Pad Pro.cfg old mode 100755 new mode 100644 diff --git a/sdl2/Pokken Controller.cfg b/sdl2/Pokken Controller.cfg old mode 100755 new mode 100644