LiveriaDevs-ValheimCursorLockFix icon

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.

Last updated 3 weeks ago
Total downloads 467
Total rating 2 
Categories Mods Client-side
Dependency string LiveriaDevs-ValheimCursorLockFix-1.0.7
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

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
  • Cursor stays visible for radial menus (emotes, item quick-select, etc.)
  • Unlocks for menus, inventory, build menu, map, store, text viewer, console, popups
  • Toggle with F8

Changelog

See CHANGELOG.md.