A MelonLoader mod for Slime Rancher 2 that adds gyroscope camera control without breaking controller button prompts or mixed input mode.
Most Unity games treat mouse and gamepad as mutually exclusive input modes — if you feed gyro as mouse movement via Steam Input, the game switches to keyboard/mouse mode and shows the wrong button prompts.
SR2 Gyro Aim bypasses this entirely. It reads gyro data via the Cemuhook UDP protocol (port 26760) and injects rotation directly into the game's internal camera fields (_planarDirection and _targetVerticalAngle on SRCameraController). The game never sees any mouse input, so it stays in controller mode with correct button prompts at all times.
- Steam Deck with SteamDeckGyroDSU running as a background service
- Steam Input left enabled (SteamDeckGyroDSU exposes gyro independently of Steam Input)
Any device running a Cemuhook/DSU UDP server on 127.0.0.1:26760 should work, including:
- DualSense / DualShock 4 on Windows via DS4Windows with UDP server enabled
- DualSense / DualShock 4 on Linux via DualSenseY or similar
- Nintendo Switch Pro Controller / Joy-Cons via BetterJoy
- Any other controller with a Cemuhook-compatible DSU server
These have not been personally tested — if you try one, please open an issue or PR to update this list.
- MelonLoader 0.7.3+
- A Cemuhook DSU server running on
127.0.0.1:26760(see above) - (Optional) Starlight for in-game settings UI
- Install MelonLoader 0.7.3+ for Slime Rancher 2
- Download
SR2GyroAim.dllfrom the latest release - Place it in your
Slime Rancher 2/Mods/folder - Start your DSU server before launching the game
- Launch SR2
Settings are stored in UserData/MelonPreferences.cfg and can be edited there or via the Starlight mod menu in-game.
| Setting | Default | Description |
|---|---|---|
| Pan Sensitivity | 1.5 | Left/right panning speed. Set to 0 to disable. |
| Tilt Sensitivity | 1.5 | Up/down tilt speed. Set to 0 to disable. |
| Twist Sensitivity | 0.0 | Left/right twist speed. Disabled by default — enable if you prefer twist aiming. |
| Invert Pan | false | Invert left/right panning direction. |
| Invert Tilt | false | Invert up/down tilt direction. |
| Invert Twist | false | Invert left/right twist direction. |
| Deadzone | 1.5 | Minimum movement (deg/s) before input registers. Increase if camera drifts when holding still. |
- Install SteamDeckGyroDSU — it runs as a systemd service and starts automatically on boot
- Install MelonLoader and this mod as above
- Leave Steam Input enabled for SR2 — SteamDeckGyroDSU works independently of it
- Launch SR2 normally from Game Mode
git clone https://github.com/FunkyByte1/SR2GyroAim
cd SR2GyroAim/SR2GyroAim
# Set path to your SR2 install
export SR2Path="$HOME/.local/share/Steam/steamapps/common/Slime Rancher 2"
dotnet buildThe compiled DLL will be at bin/Debug/netstandard2.1/SR2GyroAim.dll.
MIT