Client: add cl_joystickLookCurve (opt-in response curve for joystick look) #1319
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds cl_joystickLookCurve (default 1.0, linear) to apply a response curve to joystick look axes only (yaw/pitch) in CL_JoystickMove() for both SP and MP.
This lets you tune “fine aim vs fast turn” behavior (e.g. >1.0 = less sensitive near center, <1.0 = more sensitive near center) without changing movement or defaults.
Scope: code/client/cl_input.cpp, codemp/client/cl_input.cpp only.
Inspired by jk2mv’s controller stick-shaping work; adapted for OpenJK and kept default-neutral.
How to test:
set in_joystick 1
set in_joystickUseAnalog 1
set cl_joystickLookCurve 1.0 (default / linear)
Example values:
set cl_joystickLookCurve 1.5 (less sensitive near center, better fine aim)
set cl_joystickLookCurve 0.8 (more sensitive near center)