You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/controller-autoconfiguration.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,7 @@ The combination of Vendor ID and Product ID is often referred to as "vid:pid" in
123
123
124
124
This automated matching system allows RetroArch to support a vast array of controllers, reducing the need for manual setup in most situations.
125
125
126
+
126
127
## Why is it needed?
127
128
128
129
RetroArch works many platforms. Each of these platforms has one or more input systems. These input systems in turn differ widely in the way they enumerate the pad buttons. For this reason, your joypad buttons may be mapped differently depending on if you are using Windows, Mac, or Linux.
@@ -549,6 +550,45 @@ input_vendor_id = "1356"
549
550
input_product_id = "3570"
550
551
```
551
552
553
+
#### Manually finding Vendor ID and Product ID (VID:PID) on GNU/Linux
554
+
555
+
If you need to manually identify the VID:PID for your controller (for example, if RetroArch does not work as expected for you) in GNU/Linux, you can run this script:
556
+
557
+
```
558
+
#!/bin/bash
559
+
560
+
# This script helps you identify your connected USB joypad.
561
+
# It lists all USB devices, lets you select your joypad, extracts its Vendor ID and Product ID,
562
+
# converts these IDs from hexadecimal to decimal, and prints them in a configuration-ready format.
563
+
# If you skip selection, it exits gracefully.
564
+
565
+
read -p "Connect your joypad and press ENTER."
566
+
lsusb | nl -w2 -s': '
567
+
read -p "Enter the number of your joypad device (or ENTER to skip): " n
568
+
569
+
if [[ -z "$n" ]]; then
570
+
echo "No device selected. Only mapping will be re-generated."
0 commit comments