Skip to content

Fix pushing keyboard and mouse to the same stack level#2636

Merged
einarf merged 1 commit intopythonarcade:developmentfrom
csd4ni3l:csd4ni3l-fix-same-stack-level
Apr 2, 2025
Merged

Fix pushing keyboard and mouse to the same stack level#2636
einarf merged 1 commit intopythonarcade:developmentfrom
csd4ni3l:csd4ni3l-fix-same-stack-level

Conversation

@csd4ni3l
Copy link
Contributor

@csd4ni3l csd4ni3l commented Apr 2, 2025

The push_handlers function is used incorrectly. It only pushes a single stack level, meaning mouse and keyboard override each other. This means, their shared events, such as on_deactivate, will only be triggered by the last option, which is mouse here. This causes the keyboard to ignore the on_deactivate event. This fixes that issue by pushing 2 times to different levels.

@einarf einarf merged commit 11deaa7 into pythonarcade:development Apr 2, 2025
7 checks passed
@csd4ni3l csd4ni3l deleted the csd4ni3l-fix-same-stack-level branch April 2, 2025 20:32
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