Skip to content

Auto-hold: DesktopOnly/Everywhere modes + per-player VR opt-out#917

Merged
dooly123 merged 1 commit into
BasisVR:working-on-pickups-and-cilbox-allowsfrom
CompuGeniusCode:feat/vr-autohold
Jul 2, 2026
Merged

Auto-hold: DesktopOnly/Everywhere modes + per-player VR opt-out#917
dooly123 merged 1 commit into
BasisVR:working-on-pickups-and-cilbox-allowsfrom
CompuGeniusCode:feat/vr-autohold

Conversation

@CompuGeniusCode

@CompuGeniusCode CompuGeniusCode commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What: Builds on this branch's VR auto-hold. Replaces BasisAutoHold Yes/No with None/DesktopOnly/Everywhere, so a world can auto-hold on desktop only or everywhere. IsAutoHoldActive() now resolves per-device.

Opt-out: New DisableVRAutoHold player setting ("Disable VR Auto-Hold") makes IsAutoHoldActive() return false in VR, overriding a world's per-grabbable value — the player wins over the world. Desktop is unaffected.

Drop persistence: Direct grab now requires a fresh grip press instead of a merely-held grip, so a pickup dropped by the world (or by the auto-hold toggle) stays dropped until the player intentionally grabs again — the still-held grip no longer instantly re-grabs it. Reuses the existing wasGripDown edge.

Compat: DesktopOnly=0 (old Yes), None=1 (old No), Everywhere=2; CueGrip updated to the new names.

@CompuGeniusCode

Copy link
Copy Markdown
Contributor Author

Closes #908

@CompuGeniusCode CompuGeniusCode marked this pull request as ready for review July 2, 2026 17:21
@CompuGeniusCode CompuGeniusCode changed the title Add VR auto-hold (BasisAutoHold.Everywhere) with re-press-grab drop and player opt-out Auto-hold: DesktopOnly/Everywhere modes + per-player VR opt-out Jul 2, 2026
@CompuGeniusCode CompuGeniusCode changed the base branch from developer to working-on-pickups-and-cilbox-allows July 2, 2026 17:40
@CompuGeniusCode CompuGeniusCode marked this pull request as draft July 2, 2026 17:41
…d intentional re-grab

Replace BasisAutoHold Yes/No with None/DesktopOnly/Everywhere: a world can
auto-hold on desktop only or everywhere. IsAutoHoldActive() resolves per-device,
and VR players can opt out for themselves via the new Disable VR Auto-Hold
setting, overriding a world's per-grabbable value.

Direct grab now requires a fresh grip press rather than a held grip, so a pickup
dropped by the world (or by the auto-hold toggle) stays dropped until the player
intentionally grabs again. CueGrip updated to the new enum names.
@CompuGeniusCode CompuGeniusCode marked this pull request as ready for review July 2, 2026 18:39
@dooly123 dooly123 merged commit 3904421 into BasisVR:working-on-pickups-and-cilbox-allows Jul 2, 2026
9 of 11 checks passed
@CompuGeniusCode CompuGeniusCode deleted the feat/vr-autohold branch July 2, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants