Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
WiresNativeCursorSupport
Uses native/system cursor states throughout Valheim's UI on Windows, macOS and Linux.
By Wire
| Date uploaded | 2 days ago |
| Version | 0.4.3 |
| Download link | Wire-WiresNativeCursorSupport-0.4.3.zip |
| Downloads | 15 |
| Dependency string | Wire-WiresNativeCursorSupport-0.4.3 |
README
Wire's Native Cursor
Uses the operating system's actual cursor instead of Valheim's custom pointer image. The native operating system draws the cursor. Cursor states change on UI events, not through per-frame updates.
Native backends:
- Windows and Proton/Wine: Windows system cursor handles using the game's window messages.
- macOS: AppKit NSCursor objects.
- Native Linux/X11: Xcursor theme handles assigned to Valheim's X11 window.
- Native Wayland without XWayland is not supported by this backend.
Cursor states include arrow, clickable hand, text, dragging, working and waiting. The accessibility settings toggle returns to Valheim's default cursor when disabled.
Custom system theme, size and animation are delegated to the OS or the Wine/Proton cursor layer, rather than copying and resizing images. Windows cursor scaling has not yet been tested. macOS, native X11 and Proton/Wayland behavior need confirmation from users.
This mod is AI-assisted.
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.