Native 1:1 Mouse & Keyboard, live F10 Controls editor, and bindings-synced HUD prompts #113
No reviewers
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!113
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-113"
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?
@greedtv92 on GitHub · 2026-12-05 18:55 UTC · original
greedtv92:feat/native-mnk-controls→main· +7395 −2097 · 16 files · 1 commits · closed without mergingUnifies direct mouse camera (#46), world map mouse (#78), and
mouse.rsinto a single, zero-lock native 1:1 Mouse & Keyboard stack (mnk.rs+native_mouse.rs+mousehook.rs), adding Pause/Shop menu cursor hover/click, a live in-gameF10 -> Controlskeybinding editor, GTA PC driving & minigame controls, and bindings-synced HUD button prompts (coexisting with existing PlayStation / DualSense auto-prompts).What's Included (on top of latest
main)mousehook.rs,native_mouse.rs): combines directlook_pullcamera aiming, Map drag/zoom, and Pause/Shop menu cursor hover/click into one hook layer with automatic cursor capture/release (LARP_NATIVE_MOUSE=0orLARP_MOUSE_CAMERA=stickfalls back to right-stick emulation; reusesmain's existingcallhook.rsunchanged).F10 -> ControlsTab ([Picture] [Controls] [Untested]):auto | keyboard | playstation | xbox).Mouse1–Mouse5, orWheelUp/WheelDown(Esccancels,Deleteclears) with 0 restart, saved atomically tobindings.ini(LARP_MNK_BINDINGS>bin\bindings.ini>bindings.ininext tooptions.ini>%LOCALAPPDATA%\larp\bindings.ini).Reset / Presetbetween Standard (GTA) PC defaults (E/Rightfor Interact showing[E],C/Mouse3for Look Behind,SpaceHandbrake,FEnter Vehicle,TabWeapon Wheel,QCover) and Standard FPS (LS = Shift,A = Ctrl, Enter).Handbrake (Drive)(Spacesends XboxAwhile inVehicleSeat::Driverwithout triggeringX, separate from on-footJump / Melee).autodefault: holds camera free while moving the mouse, smoothly auto-centers after 1.5s idle;F8cyclesauto/off/on).Alt(rebindableRightStickMouse) to steer the 360° analog(R)stick with the mouse while pausing camera look, automatic mouse → Right-Stick fallback when a minigame locks the camera, plus circular-normalizedI/J/K/Lkeys.Prompts = autokeeps PlayStation symbols automatically when a DualSense/DS4 pad is connected, and otherwise draws keyboard & mouse keycaps matching the user'sbindings.iniand AZERTY/QWERTZ printed letters (plusF1–F12,Caps,Ins/Del/Home/End/PgUp/PgDnlabels).Tahoma,DejaVu Sans,MS Gothic) inprompts/font.rs.OnceLockhook checks, fast-pathedWM_INPUT, skippedWM_MOUSEMOVEduring gameplay capture, and sub-nanosecondui_screens_beforeguard (benchmark included as#[ignore] hot_path_benchinnative_mouse.rs).F7First-Person toggle (preserved),F8cycle vehicle auto-center,F11manual mouse capture lock,[/]live mouse sensitivity.Preserved Compatibility
main(334be94): keepsF7First-Person toggle (#86), MVFG (#98), HUDLess FG (#84), NVAPI CVV (#104), 9-languageF10i18n (incl.es&pt-BR), PlayStation / DualSense HID & adaptive triggers, auto PlayStation prompts, controllerF10chord (View + Menu/LB + RB + View), dark title bar theming, Z-ROX trainer share page, andLARP_CONTROLS=pad/LARP_MNK=0/LARP_MOUSE_CAMERA=stick/LARP_MAP_MOUSE=0overrides intact.bindings.initoziplogs.rsalongsideoptions.iniandcontrols.ini.Verification
cargo test -p larp-loader --lib callhook— 3/3 passedcargo test -p larp-game --lib prompts— 60/60 passed (both Keyboard KeyCaps & PlayStation prompt suites)cargo test -p larp-hle --lib— 59/59 passed (0 failed)cargo build --release -p larp— built cleanly with 0 new warnings[E]HUD prompts,F10 -> Controlsrebinding, map/menu mouse, driving auto-center/handbrake).Credits & License
GPL-3.0-or-later. Native camera/map/menu hooks,
bindings.iniformat, and Wine/Proton prompt font fallbacks ported from Darner (tyr0nsur/Darner, GPL-3.0-or-later).a0e8c4fa90toeefe3d8fa1@gamingwithhomie on GitHub · 2026-12-05 19:12 UTC · original
Reviewed - holding: this overlaps the just-merged #46 (direct mouse camera), #78 (map mouse), #86 (first-person/F7) and the v1.0.8 Darner mouse-look/controls work, and is a very large input overhaul (+7395/-2097). Please rebase on current main and split into reviewable pieces (native mouse, F10 controls editor, HUD prompts) with each behind the existing opt-ins, so we can test-merge without replacing the working input path blindly. Thank you!
github-bot referenced this pull request2026-12-05 19:49:30 +00:00
github-bot referenced this pull request2026-12-05 19:54:50 +00:00
@greedtv92 on GitHub · 2026-12-05 19:51 UTC · original
Thanks for the clear review! I've rebased onto latest
mainand split #113 into 3 small, independent, non-breaking PRs that build directly on top of your existingmouse.rs,mousehook.rs(#46),mapmouse.rs(#78), andbound_keys()(#109) without replacing the working input path:F1–F12/nav keycap labels (+52/-6, 2 files)F10 -> Controlseditor layered directly on top ofmouse.rs+controls.ini(4 files, zero changes to default input behavior)LARP_MOUSE_CAMERA=directupgrades: 1.5s smart vehicle auto-center (F8), seat-awareSpacehandbrake,Alt+ mouse Right-Stick mode for carjacking/fishing, and hot-path caching (2 files, leaves default stick path &mapmouse.rsuntouched)Closing this monolithic PR in favor of those three!
Pull request closed