
You are viewing a potentially older version of this package. View Latest Version
ValheimCursorLockFix
Client-side cursor lock fix for Valheim. Forces cursor lock during gameplay and unlocks it in menus, inventory, build menu, map, chat and console.ValheimCursorLockFix
Client-side BepInEx 5 plugin for Valheim that keeps the mouse cursor locked and hidden during gameplay, then unlocks it whenever UI needs it.
Features
- Forces Unity/ZCursor lock during gameplay
- HardConfine: Win32 ClipCursor keeps the OS cursor inside the Valheim window
- CenterWhenHidden: pins the OS cursor to the center of the game screen while hidden
- Chat keeps the cursor hidden; focus is restored after language/IME blips
- Unlocks for menus, inventory, build menu, map, store, text viewer, console, popups
- Toggle with F8
Config
BepInEx/config/ua.gyrocopter.valheim.cursorlockfix.cfg
| Option | Default | Description |
|---|---|---|
| EnableFix | true | Enable or disable the fix |
| ForceLockInGameplay | true | Unity lock + hide during gameplay |
| UnlockInMenus | true | Unlock in menus / text UI |
| HardConfine.Enabled | true | ClipCursor to the game window |
| HardConfine.CenterWhenHidden | true | Center OS cursor while hidden |
| ToggleKey | F8 | Toggle |
Changelog
See CHANGELOG.md.