-
Notifications
You must be signed in to change notification settings - Fork 373
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
Changes from all commits
50d1413
7d5ae41
03e202b
e00d66b
f52dd80
264bdda
6684186
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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" | ||
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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Button labels 🙏 |
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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Button labels would help here 🙏 |
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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mind some button labels? |
There was a problem hiding this comment.
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?