[API Freeze] Remove legacy string enum comparisons #306
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#306
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The API consistency audit (docs/api-audit-2026-04.md, finding F13) identified that
Key,InputState, andMouseButtonenums support comparing to legacy string values for backward compatibility:Key.ESCAPE == "Escape"→ TrueInputState.PRESSED == "start"→ TrueMouseButton.LEFT == "left"→ TrueThis backward-compatibility layer adds complexity (custom
__eq__and__ne__methods) and should be removed before 1.0.Action Items
__eq__/__ne__fromPyInputStatethat handles string comparison__eq__/__ne__fromPyKeythat handles string comparison__eq__/__ne__fromPyMouseButtonthat handles string comparisonlegacy_namesmapping tablesFiles
src/PyInputState.cppsrc/PyKey.cppsrc/PyMouseButton.cpp