Skip to content

doom: turn the right way on the gen 2's ring - #27

Open
dturner wants to merge 1 commit into
sysmoon14:mainfrom
dturner:bugfix/gen2-doom-ring-direction
Open

dturner wants to merge 1 commit into
sysmoon14:mainfrom
dturner:bugfix/gen2-doom-ring-direction

Conversation

@dturner

@dturner dturner commented Nov 24, 2026 •

Copy link
Copy Markdown

Summary

On a 2nd gen thermostat, Doom turned the player right when the ring went anticlockwise. The ring's REL_X counts run the same way as the gen 3's REL_DIAL (nestlocal's home screen cards already read them with ring_sign: 1), so Doom no longer negates them.

 // platform/common/doom/doomgeneric_nest.c
-if (ev.code == REL_DIAL)  dial += ev.value;
-else if (ev.code == REL_X) dial -= ev.value;   // gen 2
+if (ev.code == REL_DIAL || ev.code == REL_X) dial += ev.value;

Evidence

  • Before: gen 2 (v0.12.1), ring anticlockwise → player turns right.
    After: same unit with this build of doom copied to /nestlabs/sbin/doom: anticlockwise turns left.

Merge Danger

Door: two-way

Blast Radius: Doom on gen 2 only. Gen 3's dial path is unchanged.

The ring's REL_X counts run the same way as the gen 3's REL_DIAL, as
nestlocal's home screen cards already read them, so Doom no longer
negates them.

This branch has not been deployed

No deployments
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.

1 participant