Skip to content

fix(templates): release held input on focus loss - #2703

Open
houko wants to merge 2 commits into
mainfrom
fix/lifecycle-input-reset-1703
Open

houko wants to merge 2 commits into
mainfrom
fix/lifecycle-input-reset-1703

Conversation

@houko

@houko houko commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • register input.Actions.WatchLifecycle in the gameplay templates and tutorial chapter that still retained held input on inactive focus loss
  • keep existing background-only pause and save callbacks while centralizing transient input reset
  • update the lifecycle decision note and changelog fragment

Verification

  • go tool nsgo test ./template/idle/... ./template/rhythm/... ./template/rpg2d/... ./template/shmup2d/... ./template/towerdefense2d/... ./template/visualnovel/... ./examples/tutorial/ch09-ship/...
  • go tool nsgo check
  • bun run verify-notes
  • go run ./tools/changelog check

@github-actions github-actions Bot added bug Something isn't working size/S documentation Improvements or additions to documentation area/examples area/template area/agents pkg/internal labels Nov 30, 2026
@houko
houko force-pushed the fix/lifecycle-input-reset-1703 branch from 902ec9c to 9ee8477 Compare December 1, 2026 03:12
@houko
houko force-pushed the fix/lifecycle-input-reset-1703 branch from 9ee8477 to 1e72490 Compare December 1, 2026 04:01

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

area/agents area/examples area/template bug Something isn't working documentation Improvements or additions to documentation pkg/internal size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant