Mouse on the world map (click for a waypoint, drag to pan, wheel to zoom) #78
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp#78
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@IndianStalker on GitHub · 2026-12-05 17:36 UTC · original
With mouse and keyboard on (anything but
LARP_CONTROLS=pad), the world map now works with the mouse, the way Darner's does:LARP_MAP_DRAG_SENS, default 2.5;LARP_MAP_DRAG_INVERT=1)LARP_MAP_WHEEL_INVERT=1turns it around); in an interior, wheel down leaves the interior viewWhile the map is open, the mouse capture is let go and the map's own cursor follows the Windows cursor. The capture comes back with the first mouse move after the map closes. Alt-Tab and the F10 menu behave as before.
How: new
crates/larp-hle/src/mapmouse.rshooksMapInputHandlerupdate / bind / unbind / destructor and the calls that fetch the map camera and centre its cursor. Build 1.0.2.1 only: every prologue is checked inside the image first, so another build gets no hook and nothing changes.LARP_MAP_MOUSE=0turns it off.settings::is_open()(new, 3 lines) keeps it out of the way while the F10 menu is open.gameinput/mouse.rsreleases/retakes the capture and adds the map's click pulses to the pad.Works with #46:
crates/larp-loader/src/callhook.rsis the same file as in #46, and the two PRs merge cleanly in either order (checked).Credit: the map hooks and
callhook.rsare Darner's (TrustNo1, GPL-3.0, git.gtahub.st/trustno1/Darner).Tested: builds on
main(0f03265) with no new warnings; unit tests pass. The same map code is in my mouse + keyboard build that I'm playing now; I'll add results here.🤖 Generated with Claude Code
Pull request details or commits were not available from GitHub; kept as an issue.
github-bot referenced this issue2026-12-05 19:01:07 +00:00