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

Add STK-7039RG (android, dinput, hid, sdl2, udev) #1210

Merged
merged 7 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Empty file modified android/8BitDo_SN30_Pro_for_Android.cfg
100755 → 100644
Empty file.
Empty file modified android/8BitDo_Zero2_gamepad_BT.cfg
100755 → 100644
Empty file.
Empty file modified android/PDP Fight Pad Pro.cfg
100755 → 100644
Empty file.
Empty file modified android/Pokken Controller.cfg
100755 → 100644
Empty file.
Empty file.
Empty file modified android/Tronsmart.cfg
100755 → 100644
Empty file.
Empty file modified dinput/8BitDo_SN30_Pro_for_Android.cfg
100755 → 100644
Empty file.
Empty file modified dinput/8BitDo_Ultimate_Wired_Controller.cfg
100755 → 100644
Empty file.
Empty file modified dinput/8BitDo_Ultimate_wireless_Controller.cfg
100755 → 100644
Empty file.
Empty file modified dinput/8Bitdo_N64_Modkit.cfg
100755 → 100644
Empty file.
Empty file modified dinput/MICREAL Wireless SNES Controller.cfg
100755 → 100644
Empty file.
Empty file modified dinput/Mayflash_SS_USB_Adapter.cfg
100755 → 100644
Empty file.
Empty file modified dinput/PDP Fight Pad Pro.cfg
100755 → 100644
Empty file.
Empty file modified dinput/Pokken Controller.cfg
100755 → 100644
Empty file.
Empty file modified dinput/Raphnet Dreamcast Controller to USB Adapter (v2).cfg
100755 → 100644
Empty file.
Empty file.
Empty file modified hid/8BitDo_Ultimate_Wired_Controller.cfg
100755 → 100644
Empty file.
Empty file modified hid/8BitDo_Ultimate_wireless_Controller.cfg
100755 → 100644
Empty file.
Empty file modified hid/8BitDo_Zero2_gamepad_BT.cfg
100755 → 100644
Empty file.
Empty file modified hid/PDP Fight Pad Pro.cfg
100755 → 100644
Empty file.
Empty file modified hid/Pokken Controller.cfg
100755 → 100644
Empty file.
Empty file modified sdl2/8BitDo_Ultimate_C_Wired_Controller.cfg
100755 → 100644
Empty file.
Empty file modified sdl2/PDP Fight Pad Pro.cfg
100755 → 100644
Empty file.
Empty file modified sdl2/Pokken Controller.cfg
100755 → 100644
Empty file.
82 changes: 82 additions & 0 deletions udev/7039RG.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# 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"
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"
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind added the button labels here too?

Empty file modified udev/8BitDo_Ultimate_C_Wired_Controller.cfg
100755 → 100644
Empty file.
Empty file modified udev/8BitDo_Ultimate_Wired_Controller.cfg
100755 → 100644
Empty file.
Empty file modified udev/8BitDo_Ultimate_wireless_Controller.cfg
100755 → 100644
Empty file.
Empty file modified udev/8BitDo_Zero2_gamepad_BT.cfg
100755 → 100644
Empty file.
28 changes: 28 additions & 0 deletions udev/Afterglow Prismatic Wired Controller.cfg
Original file line number Diff line number Diff line change
@@ -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"
Copy link
Member

Choose a reason for hiding this comment

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

Button labels 🙏

Empty file modified udev/PDP Fight Pad Pro.cfg
100755 → 100644
Empty file.
Empty file modified udev/Pokken Controller.cfg
100755 → 100644
Empty file.
Empty file modified udev/QanBa_Q4RAF_Arcade_Stick.cfg
100755 → 100644
Empty file.
53 changes: 53 additions & 0 deletions udev/SHANWAN Android Gamepad.cfg
Original file line number Diff line number Diff line change
@@ -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"
Copy link
Member

Choose a reason for hiding this comment

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

Button labels would help here 🙏

Empty file modified udev/SPEEDLINK COMPETITION PRO Game Controller for Android .cfg
100755 → 100644
Empty file.
Empty file modified udev/Xbox_360_Wireless_RF_Module_Rev_VA.cfg
100755 → 100644
Empty file.
81 changes: 81 additions & 0 deletions udev/ZhiXu Gamepad.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# 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"
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"
Copy link
Member

Choose a reason for hiding this comment

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

Mind some button labels?