p2sr / p2sr/SourceAutoRecord

`sar_sensitivity <cm/360>`

Open
#312 1 comment 0 reactions 0 assignees View on GitHub

@ellzie is already working on this.

Since Nov 10, 2025.

  • #344 by @ellzie — open
enhancement good first issue
Dominant language
C++
Stars
122
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Create a command that calculates and sets your sensitivity from the provided units (I suggest cm/360 but there could be others people like, maybe support multiple). Suggested by @0atsy like a week ago, and it shouldn't be forgotten.

Also sar_sensitivity_get <units> to convert your current sensitivity to the aforementioned units, perchance.
AFAIK, mouse sensitivity in Portal 2 depends on DPI, sensitivity, screen resolution, and fov. The latter three we can fetch automagically, but DPI I'm not sure. We may need to provide it in the command.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing linked pull request #344 and the issue's proposed sar_sensitivity and sar_sensitivity_get commands. Clarify supported units and how DPI is supplied, then verify that the commands calculate, set, and report sensitivity as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.