Make every button on your controller work on Linux: paddles, gyro and all. One TOML file per device.
Work in progress. Bug reports and feature requests are welcome: open an issue.
padctl is a small userspace daemon. It reads your controller's raw reports and presents a standard virtual gamepad to Steam and games. No kernel patches, no custom drivers.
flowchart LR
pad["Your controller<br/>paddles, gyro, vendor mode"] --> padctl
subgraph padctl
dev["Device TOML<br/>the protocol"]
map["Mapping TOML<br/>your preferences"]
end
padctl --> vpad["Virtual gamepad<br/>Xbox, DualSense, DualSense Edge<br/>or the pad's own ID"]
padctl -.-> aux["Virtual mouse / keyboard<br/>optional"]
vpad --> games["Steam and games"]
aux --> games
A Flydigi Vader 5 Pro through padctl: Steam sees an Xbox Elite 2, back paddles included.
| Controller | Extra buttons | Gyro | Rumble | Touchpad | Default output |
|---|---|---|---|---|---|
| 8BitDo Ultimate | — | — | — | — | Same as controller |
| Flydigi Apex 4 (DInput / 2.4G) | M1–M4, O | — | ✓ | — | Xbox Elite Series 2 |
| Flydigi Vader 3 (DInput) | M1–M4, C, Z, O | — | — | — | Same as controller |
| Flydigi Vader 4 Pro | M1–M4 | ✓ | — | — | Same as controller |
| Flydigi Vader 5 Pro | M1–M4, LM, RM, C, Z, O | ✓ | ✓ | — | Xbox Elite Series 2; DualSense Edge profiles |
| HORI Horipad Steam | M1–M4 | ✓ | — | — | Same as controller |
| Lenovo Legion Go | M1–M3 | — | — | — | Same as controller |
| Lenovo Legion Go S | M1–M3 | — | ✓ | — | Xbox Elite Series 2 |
| Microsoft Xbox Elite Series 2 | M1–M4 | — | ✓ | — | Same as controller |
| Nintendo Switch Pro | — | — | — | — | Same as controller |
| SCUF Envision Pro V2 | M1–M4, LM, RM, C, Z, O | — | — | — | Xbox Elite Series 2 VID:PID |
| Sony DualSense | — | ✓ | ✓ | Click | Same as controller |
| Sony DualShock 4 (v1, v2) | — | ✓ | ✓ | Click | Same as controller |
| Valve Steam Deck | M1–M4 | ✓ | ✓ | ✓ | Same as controller |
Extra buttons use the names you write in a mapping file. Gyro means padctl reads the motion sensor, so gyro mouse and gyro joystick work. Details per device: device reference.
Contributions for any controller are welcome. Most devices need only one TOML file, no code.
| Device | Status | What helps |
|---|---|---|
| Flydigi Vader 5 Pro, new firmware (IF2) | Keepalive added in v0.1.31 | Confirm input lasts past 60 s and no phantom RT (#526) |
| Flydigi Vader 3 DInput (04b4:2412) | Config added, model ID from SDL, untested | Confirm auto-selection and paddles (#528) |
| Flydigi Vader 3 Pro (04b4:2412) | Experimental config from SDL (model IDs 80, 81, 88), untested on hardware | Reports welcome: confirm auto-selection, buttons and paddles #482 |
| Flydigi Apex 5 (37d7:2501) | Experimental config added from SDL, untested | Needs "allow third-party" enabled in Flydigi Space Station (if acquire is refused, input stays dead with xpad blocked). Confirm the acquire init, input offsets, paddles and rumble. Evidence |
| Flydigi Direwolf 4 (37d7:2414) | Likely TOML only | Raw reports with M1/M2 |
| GameSir G7 Pro Amazon (wired, 3537:10ba) | Config added, hardware-untested; needs libusb and --config devices/gamesir/g7-pro-amazon-wired.toml |
Hardware test: heartbeat, stick direction, buttons incl. m (#519, #523) |
| GameSir G7 Pro 8K (native mode, 3537:10b8) | Config added, experimental, untested on hardware — reports welcome; use --config devices/gamesir/g7-pro-8k-native.toml |
Hardware test: mode switch, hat, stick direction, L4/R4/L5/R5. Evidence |
| GameSir Tarantula Pro 8K (non-PC mode, 3537:103c) | Config added, experimental, untested on hardware — reports welcome; use --config devices/gamesir/tarantula-pro-8k-non-pc.toml |
Older firmware (bcdDevice ≤ 553, i.e. 0x0229) needs an update first, per SDL. Hardware test: does the a2 01 00 write start the 0x43 stream, hat, stick direction, L4-L8. Evidence |
| GameSir Cyclone 2 (wired 3537:1053, 2.4G dongle 3537:100b, XInput mode) | Configs added, experimental, untested on hardware — reports welcome; use --config devices/gamesir/cyclone-2-wired.toml or cyclone-2-dongle.toml |
Hardware test: lsusb -v confirming the 0x12 stream is on interface 1, heartbeat necessity, stick direction, L4/R4/M. Layout evidence |
| GameSir Tarantula Pro 8K (PC mode, 3537:103d) | Config added, experimental, untested on hardware — reports welcome; use --config devices/gamesir/tarantula-pro-8k.toml |
Hardware test: heartbeat necessity, stick direction, C1-C4/T1-T3. Evidence |
| 8BitDo Ultimate 2 Wireless, Ultimate 2C, Ultimate 3 | Configs added from SDL's driver, untested | Confirm buttons, paddles and report IDs; gyro is parsed but not output yet. Evidence |
| 8BitDo Pro 2 / Pro 3 | Existing config for 2dc8:6003 (Pro 2 per SDL) covers basic input; extended mode (paddles, gyro) needs reading a feature report, which padctl cannot do yet | Raw reports with paddles and gyro |
| Razer Wolverine V3 Pro (PC Tournament) | Draft, needs code | Descriptors and raw reports (#520, #522) |
| Turtle Beach Rematch, Nacon Revolution 5 Pro, Machenike | Protocol unknown | lsusb -v, descriptors, raw reports |
| Your controller | n/a | Open an issue with lsusb -v, the report descriptor and a capture |
Devices that need stateful handshakes, rolling counters or encryption need a WASM plugin or code. Handhelds are better served by hhd or InputPlumber.
If you use an AI agent, point it at the agent guide:
Read https://bananasjim.github.io/padctl/contributing/agent-guide.html and help me add my controller to padctl.
Arch Linux (AUR)
yay -S padctl-bin # prebuilt binary
yay -S padctl-git # build from sourceSwitching from a source install? Run sudo padctl uninstall --prefix /usr --no-immutable first so pacman can own the files.
Debian / Ubuntu
curl -fLO https://github.com/BANANASJIM/padctl/releases/latest/download/padctl_amd64.deb # or padctl_arm64.deb
sudo dpkg -i padctl_amd64.deb
systemctl --user daemon-reload
systemctl --user enable --now padctl.service
sudo udevadm control --reload-rulesFor the Vader 5 Pro (its config unbinds the kernel driver), unplug and replug the controller after the service starts.
Bazzite / immutable distros
curl -fsSL https://raw.githubusercontent.com/BANANASJIM/padctl/main/scripts/bazzite-setup.sh \
| bash -s -- --mapping vader5Replace vader5 with your mapping, or drop --mapping. See the immutable install guide.
From source
Needs Zig 0.15+ and libusb-1.0.
git clone https://github.com/BANANASJIM/padctl && cd padctl
zig build -Doptimize=ReleaseSafe # or: ./scripts/padctl-docker build
sudo ./zig-out/bin/padctl install # binary, udev rules, user serviceBuild issues and options: getting started.
Then check that it works:
padctl status # daemon state and active devices
padctl doctor # if something is off: checks service, devices, driversMapping files live in ~/.config/padctl/mappings/. Create one with
padctl config init, then apply it with padctl switch <name>. Every file is
checked before it is used, and a typo tells you what you probably meant:
Paddles to keyboard keys. Back buttons send keys or mouse buttons.
[remap]
M1 = "KEY_R"
M2 = "KEY_F"
M3 = "mouse_side"
M4 = "disabled"Gyro mouse while a button is held. Aim with the controller while you hold RB.
[gyro]
mode = "mouse"
activate = "hold_RB"
sensitivity = 2.0
smoothing = 0.4
invert_y = trueA layer. Press Select to switch the face buttons to F1–F4; press it again to switch back.
[[layer]]
name = "fn"
trigger = "Select"
activation = "toggle"
[layer.remap]
A = "KEY_F1"
B = "KEY_F2"
X = "KEY_F3"
Y = "KEY_F4"Sticks as mouse and scroll wheel. Use the desktop from the couch.
[stick.left]
mode = "scroll"
suppress_gamepad = true
[stick.right]
mode = "mouse"
sensitivity = 2.5
suppress_gamepad = true
[remap]
A = "mouse_left"
B = "mouse_right"Switch profiles. Change the active mapping without restarting.
padctl list-mappings
padctl switch fps # remembered for your user
padctl switch fps --persist # also survives reboot (uses sudo)Change what games see. Some devices offer other output profiles. On a wired Vader 5 Pro, dualsense-edge-native gives Steam a DualSense Edge with gyro and back paddles.
padctl output-profile list --device "Flydigi Vader 5 Pro"
padctl output-profile select dualsense-edge-native --device "Flydigi Vader 5 Pro"More: mapping guide (tap/hold, macros, gyro joystick, adaptive triggers).
Each controller has a device TOML that describes its USB/HID protocol: report layout, buttons, gyro, rumble commands and the virtual device to create. Your mapping TOML holds personal choices: remaps, layers, gyro and stick modes, macros. padctl grabs the physical device so games see only the virtual one, and handles hotplug and config reloads while running. Adding a controller usually means writing one device TOML, with no code.
Start with padctl doctor and include its output in bug reports. For harder
bugs, record a log:
padctl dump enable # turn logging on
# reproduce the problem
padctl dump export --period 30m -o bug.log # attach bug.log to the issuepadctl statuscannot connect. Runsystemctl --user enable --now padctl.service. For boot before login, runsudo loginctl enable-linger $USER.- Permission denied on
hidraw,uinputoruhid. Runsudo udevadm control --reload-rules && sudo udevadm trigger, restart the service, replug. - Controller seen but no config matched.
padctl doctorlists the device configs it found. If yours is missing, see Help wanted. - Games still see the original controller. Replug after the service starts. For source installs, re-run
sudo padctl install.
More: troubleshooting guide.
- Getting started (install details, CLI reference, services)
- Mapping guide and mapping config reference
- Device config reference
- Supported devices
- Full documentation
See CONTRIBUTING.md and the contributing docs, including the agent guide and architecture.
LGPL-2.1-or-later. See LICENSE.

