Repository navigation
tecs.input: report the fixed phase and the input a controller reads - #20
Open
albanmgicquel wants to merge 1 commit into
Open
albanmgicquel wants to merge 1 commit into
albanmgicquel wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A library layered over
tecs.controller(repeats, or pass-through of unbound keys) has to know which tier queries read and whichInputa controller reads. Both are private today, so such a library takes theInputseparately and mirrors every fixed-phase call itself.Changes
Input:inFixedPhase()reports whether queries read the fixed-step tier.ControlManager:getInput()andController:getInput()return theInputthe manager reads.@param/@return, and covered in the input and controller guides.Tests
enterFixedPhase/exitFixedPhaseand inside an installed world's fixed step; the accessors return the manager's input.nupp checkandnupp task format-checkare clean, andnupp testpasses all 1,060 tests.docs-checkdoesn't run in my local setup: it stops on a missinglunamarkrock in the Nupp checkout, andmainstops there too. The Rust gates weren't run, since this PR changes no Rust.