Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added generic NES and SNES like USB controllers
These controllers share the same USB ID but have different button configurations.
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 0810:e501 Personal Communication Systems, Inc. | ||
|
||
# This is a NES style gamepad that uses a generic chinese USB gamepad encoder | ||
# chip common in other gamepads with different button configurations. | ||
|
||
input_driver = "udev" | ||
input_device = "usb gamepad " | ||
input_vendor_id = "2064" | ||
input_product_id = "58625" | ||
|
||
######### | ||
|
||
input_a_btn = "1" | ||
input_b_btn = "0" | ||
input_select_btn = "8" | ||
input_start_btn = "9" | ||
|
||
input_left_axis = "-0" | ||
input_right_axis = "+0" | ||
input_up_axis = "-1" | ||
input_down_axis = "+1" | ||
|
||
######### | ||
|
||
input_device_display_name = "NES-style usb gamepad" | ||
|
||
input_a_btn_label = "A" | ||
input_b_btn_label = "B" | ||
input_select_btn_label = "Select" | ||
input_start_btn_label = "Start" | ||
|
||
input_up_axis_label = "D-Pad Up" | ||
input_down_axis_label = "D-Pad Down" | ||
input_left_axis_label = "D-Pad Left" | ||
input_right_axis_label = "D-Pad Right" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 0810:e501 Personal Communication Systems, Inc. | ||
|
||
# This is a SNES style gamepad that uses a generic chinese USB gamepad encoder | ||
# chip common in other gamepads with different button configurations. | ||
|
||
input_driver = "udev" | ||
input_device = "usb gamepad " | ||
input_vendor_id = "2064" | ||
input_product_id = "58625" | ||
|
||
######### | ||
|
||
input_a_btn = "1" | ||
input_b_btn = "2" | ||
input_x_btn = "0" | ||
input_y_btn = "3" | ||
input_l_btn = "4" | ||
input_r_btn = "5" | ||
input_select_btn = "8" | ||
input_start_btn = "9" | ||
|
||
input_left_axis = "-0" | ||
input_right_axis = "+0" | ||
input_up_axis = "-1" | ||
input_down_axis = "+1" | ||
|
||
######### | ||
|
||
input_device_display_name = "SNES-style usb gamepad" | ||
|
||
input_a_btn_label = "A" | ||
input_b_btn_label = "B" | ||
input_x_btn_label = "X" | ||
input_y_btn_label = "Y" | ||
input_l_btn_label = "L" | ||
input_r_btn_label = "R" | ||
input_select_btn_label = "Select" | ||
input_start_btn_label = "Start" | ||
|
||
input_up_axis_label = "D-Pad Up" | ||
input_down_axis_label = "D-Pad Down" | ||
input_left_axis_label = "D-Pad Left" | ||
input_right_axis_label = "D-Pad Right" |
51dba46
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.
If they have the same name:vid:pid, there is no way RetroArch can choose the right config. We should avoid keeping this kind of generic config files in this repo.