Skip to content

Add Windows keyboard state fallback for play mode#48

Open
Adarsh-9182 wants to merge 1 commit into
eloialonso:mainfrom
Adarsh-9182:windows-keyboard-fallback
Open

Add Windows keyboard state fallback for play mode#48
Adarsh-9182 wants to merge 1 commit into
eloialonso:mainfrom
Adarsh-9182:windows-keyboard-fallback

Conversation

@Adarsh-9182

Copy link
Copy Markdown

Summary

  • Add a Windows-only fallback using GetAsyncKeyState for configured action keys.
  • Keep the existing Pygame event/key-state path unchanged for all platforms.
  • Use the fallback only when Pygame reports no mapped action.

Context

This targets the manual-control issue reported in #47, where the Pygame window renders but does not receive keyboard input on a Windows setup.

Verification

  • python3 -m py_compile src/game/game.py
  • git diff --check

I could not reproduce the Windows-specific input issue locally from this macOS environment.

Refs #47

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