[PR #4779] [MERGED] Fix 8BitDo Ultimate 2 right-stick look on Linux #5845

Closed
opened 2026-11-03 05:15:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4779
Author: @WooCaash
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/4343-controller-right-stick-look


📝 Commits (1)

  • 0bfa991 Fix 8BitDo Ultimate 2 right-stick look on Linux.

📊 Changes

3 files changed (+90 additions, -5 deletions)

View changed files

📝 crates/horizon-client-input/src/gamepad.rs (+60 -0)
📝 crates/horizon-client/src/game/pad/hardware.rs (+25 -3)
📝 docs/controllers.md (+5 -2)

📄 Description

🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally.

What and why

Fixes #4343. An 8BitDo Ultimate 2 (reported as an Xbox-layout pad) had working buttons including R3 sneak, but the right stick did not look around on Linux.

gilrs' bundled gamecontroller DB only ships a Windows row for this device. On Linux/Bluetooth the stick is on ABS_Z/ABS_RX (LeftZ/RightStickX), so reading RightStickX/RightStickY left look dead. Horizon now injects the Linux/BT SDL rows and, when no SDL row matched (e.g. a different firmware version GUID), remaps that VID/PID the same way.

Test plan

  • cargo test -p horizon-client-input --lib gamepad::
  • cargo check -p horizon-client --features controllers
  • On Linux with an 8BitDo Ultimate 2: right stick looks around; R3 sneak still works; other pads unchanged

🤖 Generated with Cursor

Made with Cursor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4779 **Author:** [@WooCaash](https://github.com/WooCaash) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/4343-controller-right-stick-look` --- ### 📝 Commits (1) - [`0bfa991`](https://github.com/horizon-rust/horizon/commit/0bfa9914715279fdf0c04a02bb7c2105f68e1eeb) Fix 8BitDo Ultimate 2 right-stick look on Linux. ### 📊 Changes **3 files changed** (+90 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-input/src/gamepad.rs` (+60 -0) 📝 `crates/horizon-client/src/game/pad/hardware.rs` (+25 -3) 📝 `docs/controllers.md` (+5 -2) </details> ### 📄 Description > 🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally. ## What and why Fixes #4343. An 8BitDo Ultimate 2 (reported as an Xbox-layout pad) had working buttons including R3 sneak, but the right stick did not look around on Linux. gilrs' bundled gamecontroller DB only ships a Windows row for this device. On Linux/Bluetooth the stick is on ABS_Z/ABS_RX (`LeftZ`/`RightStickX`), so reading `RightStickX`/`RightStickY` left look dead. Horizon now injects the Linux/BT SDL rows and, when no SDL row matched (e.g. a different firmware version GUID), remaps that VID/PID the same way. ## Test plan - [x] `cargo test -p horizon-client-input --lib gamepad::` - [x] `cargo check -p horizon-client --features controllers` - [ ] On Linux with an 8BitDo Ultimate 2: right stick looks around; R3 sneak still works; other pads unchanged 🤖 Generated with [Cursor](https://cursor.com) Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:24 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5845
No description provided.