ValheimCursorLockFix

v1.0.7·Updated 2026-09-20

Client-side cursor lock fix for Valheim. Forces cursor lock during gameplay and unlocks it in menus, inventory, build menu, map, chat and console.

About this mod Author’s original text

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.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
ValheimCursorLockFix-1.0.7.zip
File size
17.6 KiB