Idea: Add custom DSU (Cemuhook UDP) server support for gyroscope input #2733

Open
opened 2026-11-28 10:47:22 +00:00 by Loris_Kujo · 1 comment

The idea

Add a DSU (DualShock UDP / Cemuhook protocol) motion input client to the controller settings, allowing users to specify a custom server IP address and port (e.g., 127.0.0.1:26760) as a gyro source.

Why this would help

  • Steam Controller & Steam Input compatibility: Currently, native gyro works when Longshot is launched outside of Steam, but launching through Steam (such as in Steam Gaming Mode or with Steam Input enabled for trackpads, back grips, and action sets) intercepts or masks the controller's raw HID motion sensors.
  • Standardized workaround: Allowing Longshot to read motion data from a local or remote DSU server lets Steam Controller and Steam Deck users keep their Steam Input layouts active while forwarding gyro data via tools like SteamDeckGyroDSU or sc-controller.
  • Broader hardware support: It also enables gyro aiming for non-standard controllers, Joy-Con/DualShock setups routed through BetterJoy or DS4Windows, and smartphone motion servers without requiring per-device HID workarounds.

Anything else

How other emulators/ports implement it

Most Nintendo emulators implement this as an Alternate Input Source / Motion Provider section under Controller Settings using the standard Cemuhook UDP protocol:

  • Dolphin: Controllers → Alternate Input Sources → DSU Client (allows adding multiple IP + Port entries).
  • Ryujinx / Eden / Yuzu: Input Settings → Motion → Enable Cemuhook UDP (configurable Server IP, Port, and controller Slot 0–3).
  • Cemu: Input Settings → API: DSUController (IP:Port selection per controller profile).

Relevant references & tools

### The idea Add a DSU (DualShock UDP / Cemuhook protocol) motion input client to the controller settings, allowing users to specify a custom server IP address and port (e.g., `127.0.0.1:26760`) as a gyro source. ### Why this would help - **Steam Controller & Steam Input compatibility:** Currently, native gyro works when Longshot is launched outside of Steam, but launching through Steam (such as in Steam Gaming Mode or with Steam Input enabled for trackpads, back grips, and action sets) intercepts or masks the controller's raw HID motion sensors. - **Standardized workaround:** Allowing Longshot to read motion data from a local or remote DSU server lets Steam Controller and Steam Deck users keep their Steam Input layouts active while forwarding gyro data via tools like `SteamDeckGyroDSU` or `sc-controller`. - **Broader hardware support:** It also enables gyro aiming for non-standard controllers, Joy-Con/DualShock setups routed through `BetterJoy` or `DS4Windows`, and smartphone motion servers without requiring per-device HID workarounds. ### Anything else ### How other emulators/ports implement it Most Nintendo emulators implement this as an **Alternate Input Source / Motion Provider** section under Controller Settings using the standard Cemuhook UDP protocol: - **Dolphin:** *Controllers → Alternate Input Sources → DSU Client* (allows adding multiple `IP` + `Port` entries). - **Ryujinx / Eden / Yuzu:** *Input Settings → Motion → Enable Cemuhook UDP* (configurable `Server IP`, `Port`, and controller `Slot 0–3`). - **Cemu:** *Input Settings → API: DSUController* (`IP:Port` selection per controller profile). ### Relevant references & tools - **Cemuhook UDP / DSU Protocol Specification:** Standard 100 Hz accelerometer + gyroscope packet format supported by virtually all third-party motion servers. - **SteamDeckGyroDSU:** https://github.com/kmicki/SteamDeckGyroDSU - **sc-controller (DSU server support for Steam Controller):** https://github.com/C0rn3j/sc-controller - Related to Steam Input gyro handling discussed in PR #1181.
Member

Possibly related, for context:

  • issue #1930 Idea: Add Compatibility with GyroDSU (cemuhook) — Same request for GyroDSU/Cemuhook motion input under Steam Input
  • issue #2659 Game: the Steam Deck's gyro is not detected in Game Mode (Steam Input's stand-in pad has no sensors) — Related Steam Deck gyro unavailable in Game Mode
  • PR #2660 fix(input): the Steam Deck's own gyro when Steam Input hides it — Merged fix for Steam Deck's built-in gyro under Steam Input
Possibly related, for context: - issue #1930 Idea: Add Compatibility with GyroDSU (cemuhook) — Same request for GyroDSU/Cemuhook motion input under Steam Input - issue #2659 Game: the Steam Deck's gyro is not detected in Game Mode (Steam Input's stand-in pad has no sensors) — Related Steam Deck gyro unavailable in Game Mode - PR #2660 fix(input): the Steam Deck's own gyro when Steam Input hides it — Merged fix for Steam Deck's built-in gyro under Steam Input
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/Longshot#2733
No description provided.