Removed custom __eq__/__ne__ that allowed comparing enums to legacy string names (e.g., Key.ESCAPE == "Escape"). Removed _legacy_names dicts and to_legacy_string() functions. Kept from_legacy_string() in PyKey.cpp as it's used by C++ event dispatch. Updated ~50 Python test/demo/cookbook files to use enum members instead of string comparisons. Also updates grid.position -> grid.pos in files that had both types of changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ldtk | ||
| screens | ||
| screenshots | ||
| __init__.py | ||
| audio_synth_demo.py | ||
| cookbook_showcase.py | ||
| demo_main.py | ||
| new_features_showcase.py | ||
| perspective_patrol_demo.py | ||
| procgen_showcase.py | ||
| simple_showcase.py | ||
| tutorial_screenshots.py | ||
| tutorial_showcase.py | ||
| viewport3d_demo.py | ||
| viewport3d_screenshot.py | ||