Freqwads-LockUItoKBM icon

LockUItoKBM

Prevents UI/hotbar/Menu switching when using mixed inputs.

Last updated a month ago
Total downloads 74
Total rating 0 
Categories Mods Misc Client-side
Dependency string Freqwads-LockUItoKBM-2.0.0
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

LockUItoKBM

A specialized utility mod for Valheim designed to lock the User Interface to Keyboard and Mouse (KBM) mode, preventing erratic UI flickering when using mixed input styles.

This mod is perfect for players who want to combine the analog movement precision of a controller with the superior aiming accuracy of a mouse/trackpad (such as Steam Deck or hybrid controller users).

🚀 Why Use This Mod?

By default, Valheim dynamically switches its entire UI back and forth whenever it detects a gamepad input vs. a mouse input. This mod forces the UI to stay locked in KBM mode.

This allows you to map:

  • Left Stick: Analog joystick input (for seamless slow walk, jog, and run transitions).
  • Right Stick / Touchpad & Buttons: Keyboard and mouse inputs for superior camera control, precise aiming, and quick inventory management.

Note: Because the UI is locked to KBM, you will need to use your mouse or right touchpad to control the cursor when navigating in-game menus.

📦 Installation & Setup

  1. Install the Mod: Drop LockUItoKBM.dll into your Valheim\BepInEx\plugins folder.
  2. Configure Steam Input:
    • Open Steam and go to Valheim's Controller Layout settings.
    • Search community layouts or customize your own so that the Left Stick is set to "Joystick Move".
    • Ensure the rest of the controller bindings (buttons, triggers, right pad/stick) are mapped directly to Keyboard and Mouse inputs.
  3. Launch and Enjoy!

Credits: Cybin (Concept & Design) & Google Gemini (Code)
Release Date: September 11, 2026