You are viewing a potentially older version of this package. View all versions.
LiveriaDevs-ValheimCursorLockFix-1.0.6 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.

Date uploaded 3 weeks ago
Version 1.0.6
Download link LiveriaDevs-ValheimCursorLockFix-1.0.6.zip
Downloads 24
Dependency string LiveriaDevs-ValheimCursorLockFix-1.0.6

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
  • 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.

CHANGELOG

Changelog

1.0.7

  • Keep the cursor visible and free while radial menus are open (emotes, item quick-select, etc.)

1.0.6

  • Chat keeps cursor hidden; restore chat focus after language/IME blips

1.0.5

  • Hard confine with Win32 ClipCursor + center when hidden

1.0.4

  • Fix false unlock from always-active UI roots

1.0.0

  • Initial release