You are viewing a potentially older version of this package. View all versions.
Wire-WiresNativeCursorSupport-0.4.0 icon

WiresNativeCursorSupport

Uses native/system cursor states throughout Valheim's UI on Windows, macOS and Linux.

By Wire
Date uploaded 3 days ago
Version 0.4.0
Download link Wire-WiresNativeCursorSupport-0.4.0.zip
Downloads 10
Dependency string Wire-WiresNativeCursorSupport-0.4.0

README

Replaces Valheim's little eyedropper/sword cursor thing with whatever your OS uses. Changes the cursor icon depending on the interaction, supports Windows, MacOS and Linux. (Latter 2 are untested since I only have my Windows PC, so if you're using Mac or Linux I'd love to know if it ACTUALLY works lol.)

Toggleable in the accessibility tab in the settings menu.

This mod is NOT a .png replacer like the mod I used last year to just change the valheim cursor png with my own cursor, it actually uses your operating system's cursor.

Hovering over an item will change it to the hand cursor icon, a text cursor over text boxes, the move cursor while dragging an item or the map, the working cursor while crafting and the busy one while loading. Again, the exact way it looks is completely dependent on your system and what you use.

It only changes the cursor when the game says something changed (you hover something, pick an item up, start crafting), so it costs nothing while you play.

Disclaimer: the code is AI assisted since I barely know C#. Not fully AI nor human.

Donations: ko-fi.com/krosshair

CHANGELOG

Changelog

0.4.3

  • Fixed: the system cursor no longer briefly switches back to Valheim's cursor after mouse movement or button release on Windows/Proton.
  • Restores the native cursor only when mouse input changes its handle. No per-frame polling.

0.4.2

  • Fix: preserve the desktop XCURSOR_SIZE under Proton/Wine when native cursor handles are used; all sizing is performed once at initialization.
  • Fix: native Linux/X11 cursors load the requested theme size explicitly rather than relying on the X11 fallback.
  • Windows stock/accessibility cursor handles remain unchanged without an explicit XCURSOR_SIZE.
  • No per-frame cursor polling was added.

0.4.1

  • Fix: respect explicit desktop XCURSOR_SIZE and Linux cursor-size configuration, including when Valheim runs as a Windows process through Proton/Wine. X11 default cursor size no longer overrides user sizing.
  • If a cursor theme contains only a smaller bitmap, resize it and its hotspot once during initialization. Windows native cursors are left untouched unless a desktop size is explicitly detected.
  • No new per-frame hooks, polling, or window message interception. No changes to cursor-state selection.

0.4.0

  • Performance: the cursor costs nothing while you play. It changes only when the game says something changed (you hover an item or a text box, pick an item up, start crafting, drag the map, a loading screen shows) instead of being checked every frame, and the game window's messages aren't intercepted any more. Your system's cursors are read once at startup.
  • Removed: the hand over map pins. It needed checking every frame.

0.3.3

  • Other mods can now ask for the hand cursor over their own buttons (Wire's Stackify uses it for its pouches).

0.3.2

  • Refined dynamic cursor behaviour.
  • Map panning now switches to Move only after an actual drag begins, not on mouse-down.
  • Existing map pins use Hand while the rest of the map stays Arrow until dragged.

0.3.1

  • Refined cursor behaviour.