Skip to content

Xbox Controller Support#13

Open
tacticalnoot wants to merge 3 commits intokalepail:mainfrom
tacticalnoot:claude/reset-to-original-state-WhOIC
Open

Xbox Controller Support#13
tacticalnoot wants to merge 3 commits intokalepail:mainfrom
tacticalnoot:claude/reset-to-original-state-WhOIC

Conversation

@tacticalnoot
Copy link
Copy Markdown

.

claude added 2 commits March 5, 2026 14:32
Maps Xbox controller inputs to existing game actions using the
Standard Gamepad API layout:

- A button → Fire (Space)
- B button → Return to menu (Escape)
- Start button → Start / pause / resume (Enter)
- D-Pad Up → Thrust (ArrowUp)
- D-Pad Left → Turn left (ArrowLeft)
- D-Pad Right → Turn right (ArrowRight)
- Left thumbstick X/Y → Turn left/right and thrust (0.5 deadzone)

Gamepad state is tracked separately from keyboard state so neither
input source can accidentally clear the other. pollGamepad() is called
once per animation frame in updateFrame() before input is processed.

https://claude.ai/code/session_01FJ5AiP5JUoWm8boiaxVU1g
- LT (button 6) → thrust (ArrowUp)
- RT (button 7) → fire (Space)
- Remove A button fire binding (triggers are now primary)

https://claude.ai/code/session_01FJ5AiP5JUoWm8boiaxVU1g
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1242c19229

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/game/input.ts
Enter (mapped from gamepad Start) was only handled in menu/game-over
and paused states. Add the playing→paused transition so controller-only
users can pause mid-game, mirroring the existing KeyP behaviour.

https://claude.ai/code/session_01FJ5AiP5JUoWm8boiaxVU1g
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.

2 participants