Files
larp/docs/controls-and-input.md
gamingwithhomie 3897c2ec57 Merge pull request #134
# Conflicts:
#	docs/environment-variables.md
2026-12-06 02:30:47 +05:30

5.4 KiB
Raw Permalink Blame History

Controls, Mouse & Keyboard, DualSense & Trainer Guide


1. Mouse & Keyboard (LARP_CONTROLS=auto|mnk|pad)

Stock larp only supported keyboard-as-gamepad buttons with no mouse input. Our Enhanced Fork (v2+) adds Raw Input (WM_INPUT) mouse camera look, mouse triggers, scroll-wheel cycling, PC keyboard key-cap prompts, and customizable controls.ini keybinds.

Capturing & Releasing the Mouse

  • In auto, an active physical controller takes priority. Keyboard/mouse mapping returns after the last active pad has been idle for 300 ms, or immediately when it disconnects. mnk keeps the configured bindings available regardless of past controller input.
  • While captured, a sampled short button/trigger press remains available to the next current pad reading for up to 100 ms. This does not change key bindings, extend mouse movement or generate repeated presses.
  • Capture mouse: Wait for startup shader compilation to finish, then left-click inside the game window (when no controller is active, or anytime when LARP_CONTROLS=mnk).
  • Release mouse: Press F10 (opens the settings overlay) or Alt+Tab out of the window.

Default PC Keyboard & Mouse Bindings

Action Default Key / Mouse Button Xbox Equivalent
Move / Steer W A S D Left Stick
Camera Look / Aim Mouse Movement (or I J K L) Right Stick
Shoot / Accelerate (Gas) Left Mouse Button (or X) Right Trigger (RT)
Aim / Brake / Reverse Right Mouse Button (or Z) Left Trigger (LT)
Sprint Left Shift A
Confirm / Accept Enter A
Jump / Handbrake Space X
Reload / Cancel / Back R / Backspace B
Enter / Exit Vehicle F Y
Interact / Context E D-Pad Right
Weapon Wheel Tab / Mouse Side Button 4 Left Bumper (LB)
Take Cover Q / Mouse Side Button 5 Right Bumper (RB)
Cycle Weapons / D-Pad Left-Right Mouse Scroll Wheel D-Pad Left / Right
Crouch / Stealth Left Ctrl Left Stick Click (L3)
Look Behind C / Middle Mouse Click Right Stick Click (R3)
Phone / D-Pad 1 2 3 4 (or Arrow Keys) D-Pad Up / Down / Left / Right
Camera Mode / View V View / Select
Pause / Map Esc / P / M Menu / Start
Larp Settings Menu F10 —
Larp Performance Overlay F9 —
Borderless Window Toggle Alt + Enter —

Optional Vehicle Controls (off by default)

  • Keyboard driving (keyboard_driving = 1 in controls.ini, or LARP_KEYBOARD_DRIVING=1): in the driver's seat (not aircraft), W / S are gas / brake, Shift / Ctrl lean, and the right / left mouse buttons are LB / RB.
  • No vehicle camera auto-center (vehicle_auto_center = 0, or LARP_VEHICLE_AUTO_CENTER=0): in a vehicle the camera stays where you left it.

Both need build 1.0.2.1 (checked at start) and change nothing when left off.

Customizing Keybinds & Sensitivity (controls.ini)

controls.ini is optional (defaults work automatically without creating it). To customize bindings or sensitivity:

  1. Copy docs/controls.example.ini into your main Larp\ folder and rename it to controls.ini (next to options.ini).
  2. Edit any key or sensitivity value and restart the game.

Showing PC Key-Cap Button Prompts In-Game

With LARP_PROMPTS=auto (the default) key caps are chosen at start when LARP_CONTROLS=mnk is set or no controller is connected. To force them anyway (for example with a pad plugged in), set in Larp\bin\launch.ps1:

$env:LARP_PROMPTS = 'keys'

2. PlayStation DualSense / DualSense Edge / DualShock 4

Enhanced larp.exe includes native HID support over both USB and Bluetooth — no third-party remappers needed!

  1. Close DS4Windows and Steam completely before launching! Both tools intercept or create virtual Xbox controllers that conflict with native HID polling.
  2. Connect your DualSense or DualShock 4 via USB or Bluetooth and launch series-s.cmd or series-x.cmd.
  3. PlayStation Prompts (Cross, Circle, Square, Triangle, L1–R2, Touchpad) activate automatically when LARP_PROMPTS=auto detects a PlayStation controller.
  4. Adaptive Triggers (LARP_DS_TRIGGERS=1) are enabled by default in launch.ps1.
  5. Optional Customization (in Larp\bin\launch.ps1):
    • $env:LARP_DS_LIGHTBAR = 'FF0080' (hex RGB color, or 'off' to turn off the LED bar)
    • $env:LARP_DS_TRIGGER_RUMBLE = '1' (mirrors game rumble motors onto adaptive triggers)
    • $env:LARP_PROMPTS = 'xbox' (if you prefer Xbox ABXY icons on a PlayStation pad)

3. Native mods\ Loader & Trainers (WorldSmith / Z-ROX / Kerosene)

Enhanced larp.exe loads .dll and .asi mods natively at startup — no xinput1_4.dll proxy needed:

  1. Create a mods folder inside your Larp\ folder (Larp\mods\).
  2. Drop your trainer .dll or .asi (e.g., worldsmith.dll) into Larp\mods\.
  3. Z-ROX Controller Hold (LARP_TRAINER=1): When LARP_TRAINER=1 is set, larp.exe maps the shared Z-ROX memory page (0x5A52_4F58_0000) so navigating the Z-ROX menu on a gamepad pauses D-Pad / A / B / LB / RB inputs in-game automatically.
  4. Set $env:LARP_NO_MODS = '1' if you want to temporarily boot with all mods disabled.