How to drive with keyboard (W/S) instead of mouse buttons (LMB/RMB) and configure 1:1 mouse camera? #304

Open
opened 2026-12-05 23:02:43 +00:00 by github-bot · 2 comments
Owner

@⁠isim89920-coder on GitHub · 2026-12-05 22:53 UTC · original

I'm playing on Windows (NVIDIA) using v1.1.2 with Keyboard + Mouse. Currently, accelerating and braking in vehicles are mapped to Left/Right Mouse Buttons (LMB/RMB).How can I properly configure the game so that:

Accelerating and braking in vehicles work with W and S keys instead of mouse clicks?

Mouse camera movement feels like true 1:1 PC mouse control with higher sensitivity?I tried setting LARP_KEYBOARD_DRIVING=1 and LARP_MOUSE_CAMERA=direct in series-s.cmd, as well as renaming controls.example.ini to controls.ini, but I want to make sure I'm not missing any other setting or controls.ini parameter. Thanks!

**@⁠isim89920-coder** on GitHub · 2026-12-05 22:53 UTC · [original](https://github.com/gamingwithhomie/larp/issues/304) I'm playing on Windows (NVIDIA) using v1.1.2 with Keyboard + Mouse. Currently, accelerating and braking in vehicles are mapped to Left/Right Mouse Buttons (LMB/RMB).How can I properly configure the game so that: Accelerating and braking in vehicles work with W and S keys instead of mouse clicks? Mouse camera movement feels like true 1:1 PC mouse control with higher sensitivity?I tried setting LARP_KEYBOARD_DRIVING=1 and LARP_MOUSE_CAMERA=direct in series-s.cmd, as well as renaming controls.example.ini to controls.ini, but I want to make sure I'm not missing any other setting or controls.ini parameter. Thanks!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 23:02:43 +00:00
Author
Owner

@⁠murraydylan77-commits on GitHub · 2026-12-05 23:13 UTC · original

Add a line in the launch.ps1 in bin folder with $env: (the command for it) = ‘1’

**@⁠murraydylan77-commits** on GitHub · 2026-12-05 23:13 UTC · [original](https://github.com/gamingwithhomie/larp/issues/304#issuecomment-7447405305) Add a line in the launch.ps1 in bin folder with $env: (the command for it) = ‘1’
Author
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:34 UTC · original · edited 2026-12-06 01:39 UTC

For the setup you described, both options are already supported; the important part is setting them in Larp\bin\launch.ps1 before the game starts (rather than editing controls.ini for these switches):

$env:LARP_KEYBOARD_DRIVING = '1'
$env:LARP_MOUSE_CAMERA = 'direct'
$env:LARP_MOUSE_CAMERA_SENS = '0.0015'
  • LARP_KEYBOARD_DRIVING=1 enables W/S throttle and brake while driving (supported title build 1.0.2.1).
  • LARP_MOUSE_CAMERA=direct selects the direct Raw Input camera path, bypassing the right-stick dead zone, smoothing and acceleration. It requires mouse/keyboard input mode; LARP_CONTROLS=pad disables it.
  • LARP_MOUSE_CAMERA_SENS is radians per raw mouse count; 0.0015 is the default. The accepted range is 0.00005..=0.05.

For the normal right-stick mouse path, LARP_MOUSE_SENS is the separate multiplier (default 1.0). You do not need to create controls.ini unless you want custom key bindings. I added the direct-camera explanation to the controls guide in PR #499: #499

**@⁠vanya890** on GitHub · 2026-12-06 01:34 UTC · [original](https://github.com/gamingwithhomie/larp/issues/304#issuecomment-7449281601) · edited 2026-12-06 01:39 UTC For the setup you described, both options are already supported; the important part is setting them in `Larp\bin\launch.ps1` before the game starts (rather than editing `controls.ini` for these switches): ```powershell $env:LARP_KEYBOARD_DRIVING = '1' $env:LARP_MOUSE_CAMERA = 'direct' $env:LARP_MOUSE_CAMERA_SENS = '0.0015' ``` - `LARP_KEYBOARD_DRIVING=1` enables W/S throttle and brake while driving (supported title build 1.0.2.1). - `LARP_MOUSE_CAMERA=direct` selects the direct Raw Input camera path, bypassing the right-stick dead zone, smoothing and acceleration. It requires mouse/keyboard input mode; `LARP_CONTROLS=pad` disables it. - `LARP_MOUSE_CAMERA_SENS` is radians per raw mouse count; `0.0015` is the default. The accepted range is `0.00005..=0.05`. For the normal right-stick mouse path, `LARP_MOUSE_SENS` is the separate multiplier (default `1.0`). You do not need to create `controls.ini` unless you want custom key bindings. I added the direct-camera explanation to the controls guide in PR #499: https://git.gtahub.st/github/gamingwithhomie--larp/pulls/499
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/gamingwithhomie--larp#304
No description provided.