Skip to content

tecs.input: report the fixed phase and the input a controller reads - #20

Open
albanmgicquel wants to merge 1 commit into
tecs-dev:mainfrom
albanmgicquel:input-fixed-phase
Open

albanmgicquel wants to merge 1 commit into
tecs-dev:mainfrom
albanmgicquel:input-fixed-phase

Conversation

@albanmgicquel

Copy link
Copy Markdown
Collaborator

A library layered over tecs.controller (repeats, or pass-through of unbound keys) has to know which tier queries read and which Input a controller reads. Both are private today, so such a library takes the Input separately and mirrors every fixed-phase call itself.

Changes

  • Input:inFixedPhase() reports whether queries read the fixed-step tier.
  • ControlManager:getInput() and Controller:getInput() return the Input the manager reads.
  • Both are read-only, documented with @param/@return, and covered in the input and controller guides.

Tests

  • New: the query flips with enterFixedPhase/exitFixedPhase and inside an installed world's fixed step; the accessors return the manager's input.
  • On macOS ARM64: nupp check and nupp task format-check are clean, and nupp test passes all 1,060 tests.
  • docs-check doesn't run in my local setup: it stops on a missing lunamark rock in the Nupp checkout, and main stops there too. The Rust gates weren't run, since this PR changes no Rust.

Nothing public said which edge tier Input's queries read, and ControlManager
and Controller kept their Input private, so a library layered over
tecs.controller had to take the Input separately and mirror every
enterFixedPhase and exitFixedPhase call.

Input:inFixedPhase reports whether queries read the fixed-step tier, and
getInput on a ControlManager or a Controller returns the Input it reads.

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