Repository navigation
Conversation
… paragraph The merge of #2380 left a top-level "# Steam Deck" heading over a second copy of the Haptics.SetPaused paragraph in docs/en/input.md and docs/zh/input.md, splitting the page under a wrong title; the Haptic feedback section already documents SetPaused and the Game controllers section documents the Steam Deck.
…ses feedback The RumblePreset constants from #2378 had no doc comments. The pause test from #2380 only checked that a rumble emitted before SetPaused, so it passed with pausing removed; it now checks that pausing stops the motors and that Play, Rumble and Update emit nothing until SetPaused(false).
GestureRecognizer.Pan, added in #2376, was set on each TouchMove and never cleared, so a camera reading it every fixed step kept moving by the last delta while the fingers rested, and when two moves arrived between steps only the second was counted. Pan now adds up the moves since the previous Update and is promoted on Update, like the pinch events, with a valid zero delta for resting fingers; a finger touching down or lifting starts the accumulation again.
PseudoLocale from #2303 was documented as preserving placeholders but accented the vowels inside them, so "Save {name}" became "[SÅvË {nÅmË}]" and the test asserted it. It now copies {name} placeholders and escaped braces with the rules StripPlaceholders and Catalog.T use, and the test checks the result with ValidatePlaceholders.
#2306 added MirrorRect(containerWidth, x, width), which computes what the existing MirrorX(x, width, containerWidth, DirRTL) does with the arguments in another order; nothing uses it, so it is removed. ReadingOrder panicked on a negative count and now returns nil. The gameui pointer to these helpers, lost in the merge, is restored as a short section that says gameui does not mirror yet.
…ormatNumber FormatNumber from #2304 grouped Spanish with dots but kept a decimal point, matched locales by string prefix, and grouped the letters of "+Inf" into "+,Inf". It now picks the separators by the language subtag (de, es, it, nl, pt and tr use a decimal comma, fr a space and a comma) and writes NaN and infinities as NaN, the infinity sign and its negative. FormatDuration wrote a negative duration as "-1m -5s" and now writes "-1m 5s".
The l10n page had a heading glued to the end of a paragraph, the RTL helpers under CSV exchange, a PseudoLocale paragraph that claimed it expands text, and no final newline. The gesture pan note now records the per-step Pan contract, and the changelog fragment records the fixes in this branch.
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.
Follow-up review of the input and l10n pull requests the merge train landed. Each section says whether the PR landed intact on main and what this PR changes.
#2041 feat(input): add mapping contexts and vector actions
OK. Code, tests, docs and note are on main; every
Actionspath that evaluates bindings goes throughliveBindings. No change.#2102 fix(input): select Steam Deck prompt glyphs
Landed, and a later PR extended the fallback chain to Deck, Xbox, generic, keyboard with its own
### Steam Decksection. The merge left a top-level# Steam Deckheading indocs/en/input.mdanddocs/zh/input.mdover a second copy of #2380'sSetPausedparagraph. This PR removes the heading and the duplicate paragraph; the Haptic feedback section already documentsSetPaused. The one-line# Steam Deck promptsaddition to gameui.md was dropped by the merge and is not restored, since input.md covers it.#2201 feat(input): expose pointer and touch snapshots
Not intact:
Actions.Pointer,Actions.Touchesand their docs were dropped, andTestPointerAndTouchSnapshotsfails on main. Left to the open #2472 (fix/input-snapshots-1702), which restores them; this PR does not touch them.#2376 feat(input): expose two-finger pan deltas
Landed intact, but
GestureRecognizer.Panwas set on eachTouchMoveand never cleared. A camera reading it each fixed step kept moving by the last delta while the fingers rested, and when two moves arrived between steps only the second was counted.Pannow adds up the moves since the previousUpdateand is promoted onUpdate, like the pinch events. Resting fingers give a valid zero delta, and a finger touching down or lifting restarts the accumulation. The test, docs and note are updated, and the new test covers resting fingers, several moves per step and one finger down.#2378 feat: add pause-aware haptic presets
Landed. The exported
PresetHit,PresetHeavyHit,PresetExplosionandPresetEnginehad no doc comments; this PR adds them.#2380 feat(input): suppress haptics while paused
A duplicate of #2378's
SetPaused, which merged into the same function. Its test only checked that a rumble emitted before pausing, so it passed with pausing removed. The test now checks that pausing stops the motors, thatPlay,RumbleandUpdateemit nothing while paused, and that feedback comes back afterSetPaused(false).#2432 fix(input): restore Actions.WatchLifecycle after integration merge
OK.
WatchLifecycleand its regression test are on main.#2303 feat: add localization pseudo locale
PseudoLocalewas documented as preserving placeholders but accented the vowels inside them:"Save {name}"became"[SÅvË {nÅmË}]", and the test asserted that. It now copies{name}placeholders and the escaped braces{{and}}unchanged, using the rulesStripPlaceholdersandCatalog.Tuse, and the test checks the result withValidatePlaceholders. The docs also claimed the function expands text, which it does not; they now say what it does. The PR saidCloses #1423, but it covers none of that issue's acceptance items (expansion ratio, RTL pseudolocale,game check -pseudo, translator notes andmaxLength).#2304 feat(l10n): add locale formatting helpers
FormatNumbergrouped Spanish with dots but kept a decimal point (1.234.5), matched locales by string prefix, and grouped the letters of+Infinto+,Inf. It now picks the separators by the language subtag: de, es, it, nl, pt and tr use a decimal comma, and fr uses a space and a comma. NaN and the infinities are written asNaN,∞and-∞.FormatDurationwrote a negative duration as-1m -5sand now writes-1m 5s. The tests cover these cases.#2306 feat: add rtl layout primitives
MirrorRect(containerWidth, x, width)duplicated the existingMirrorX(x, width, containerWidth, dir)with the arguments in another order. Nothing used it, so it is removed; the docs and note point toMirrorX.ReadingOrderpanicked on a negative count and now returns nil. The merge dropped the gameui pointer to these helpers, so it is restored as a short section that says gameui does not mirror yet. On the l10n page, the RTL sentence had landed under CSV exchange and a heading was glued to the end of a paragraph; both are fixed. The PR saidCloses #1426, but the issue asks forRoot.Directionand mirrored containers in gameui, and none of that is done.Verification
go tool nsgo test ./pkg/l10n/... ./pkg/input/...on the remote build host: every test passes exceptTestPointerAndTouchSnapshots, which already fails on main and is fixed by fix(input): repair pointer and touch snapshots #2472.go tool nsgo check ./pkg/l10n/...andgo tool nsgo check ./pkg/input/...pass.go tool nsgo test ./internal/repocheck/...passes.go run ./tools/changelog checkandbun run verify-notespass.Screenshots
None.