Third-person camera: enabling it in settings shouldn't capture the mouse immediately #795
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#795
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
When the third-person shooter camera is turned on in settings (
SlipstreamTPSCamera), it immediately engages and captures the mouse (cursor hidden, mouse drives the camera). It should instead turn on in the non-captured state: the cursor stays free until the user engages it (self-click / Esc / the engage key, as already supported).Why: the setting is usually flipped from the preferences floater or a menu. Capturing straight away takes the mouse from the UI the user is still using, and they have to release it again to finish.
Where:
indra/newview/sltpscamera.cppSLTPSCamera::onSettingChangedcallsrequestEngage()when the setting becomes true, andtoggleEngaged()relies on that ("turning the feature on engages it").update()then callsengage(), which takesSLToolTPSmouse capture and hides the cursor.Expected:
toggleEngaged()(keybind): decide whether enable + engage in one press is still wanted there; if so, engage explicitly in that path instead of through the setting callback.