-
Notifications
You must be signed in to change notification settings - Fork 399
[MERGED] linuxraw: Create Wireless Controller.cfg #1175
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
Closed
Closed
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d77f6f4
Create Wireless Controller.cfg
davidhedlund 85b32c9
Update Wireless Controller.cfg
davidhedlund 3d2faeb
Update Wireless Controller.cfg
davidhedlund 2612689
Update Wireless Controller.cfg
davidhedlund dd3ce82
Update Wireless Controller.cfg
davidhedlund f61dab6
Update Wireless Controller.cfg
davidhedlund 486f5f6
Update Wireless Controller.cfg
davidhedlund 24c0fc6
Update Wireless Controller.cfg
davidhedlund 3c84b38
Update Wireless Controller.cfg
davidhedlund 61c4de8
Update Wireless Controller.cfg
davidhedlund dc18377
Update Wireless Controller.cfg
davidhedlund 05e8bd9
Update Wireless Controller.cfg
davidhedlund ec13767
Update Wireless Controller.cfg
davidhedlund File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,61 @@ | ||
| input_driver = "linuxraw" | ||
| # The files "Sony Interactive Entertainment Wireless Controller.cfg" and "Wireless Controller.cfg" should have identical content except for the input_device variable. This difference allows thelinuxraw driver to recognize the controller on various Linux kernel versions. | ||
| input_device = "Wireless Controller" | ||
| input_device_display_name = "Sony DualShock 4 v2 Controller" | ||
|
|
||
| input_b_btn = "0" | ||
| input_y_btn = "3" | ||
| input_select_btn = "8" | ||
| input_start_btn = "9" | ||
| input_up_axis = "-7" | ||
| input_down_axis = "+7" | ||
| input_left_axis = "-6" | ||
| input_right_axis = "+6" | ||
| input_a_btn = "1" | ||
| input_x_btn = "2" | ||
| input_l_btn = "4" | ||
| input_r_btn = "5" | ||
| # See https://github.com/libretro/RetroArch/issues/6920 | ||
| # RetroArch's in-app feature to create autoconfig files is flawed and will attempt to create the 2 lines : | ||
| # input_l2_btn = "6" | ||
| # input_r2_btn = "7" | ||
| # Those 2 lines are a downgrade from the 2 following lines which additionally allow l2/r2 to be polled as analog axes : | ||
| input_l2_axis = "+2" | ||
| input_r2_axis = "+5" | ||
| input_l3_btn = "11" | ||
| input_r3_btn = "12" | ||
| 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" | ||
| input_menu_toggle_btn = "10" | ||
|
|
||
| input_b_btn_label = "Cross" | ||
| input_y_btn_label = "Square" | ||
| input_select_btn_label = "Create" | ||
| input_start_btn_label = "Options" | ||
| input_a_btn_label = "Circle" | ||
| input_x_btn_label = "Triangle" | ||
| input_l_btn_label = "L1" | ||
| input_r_btn_label = "R1" | ||
| input_l2_axis_label = "L2" | ||
| input_r2_axis_label = "R2" | ||
| input_l3_btn_label = "L3" | ||
| input_r3_btn_label = "R3" | ||
| 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_l_x_plus_axis_label = "Left Analog X+ (Right)" | ||
| input_l_x_minus_axis_label = "Left Analog X- (Left)" | ||
| input_l_y_plus_axis_label = "Left Analog Y+ (Down)" | ||
| input_l_y_minus_axis_label = "Left Analog Y- (Up)" | ||
| input_r_x_plus_axis_label = "Right Analog X+ (Right)" | ||
| input_r_x_minus_axis_label = "Right Analog X- (Left)" | ||
| input_r_y_plus_axis_label = "Right Analog Y+ (Up)" | ||
| input_r_y_minus_axis_label = "Right Analog Y- (Up)" | ||
| input_menu_toggle_btn_label = "PS" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are you able to get the input_vendor_id and input_product_id?
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.
The linuxraw driver does not utilize the Vendor ID and Product ID. This is thoroughly explained in the documentation available at https://docs.libretro.com/guides/controller-autoconfiguration/.