McRogueFace/tests
John McCardle 59e6f8d53d Fix Issue #78: Middle mouse click no longer sends 'C' keyboard event
The bug was caused by accessing event.key.code on a mouse event without
checking the event type first. Since SFML uses a union for events, this
read garbage data. The middle mouse button value (2) coincidentally matched
the keyboard 'C' value (2), causing the spurious keyboard event.

Fixed by adding event type check before accessing key-specific fields.
Only keyboard events (KeyPressed/KeyReleased) now trigger key callbacks.

Test added to verify middle clicks no longer generate keyboard events.

Closes #78
2025-07-03 19:42:32 -04:00
..
.automation_screenshot_test.py.swp Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
WORKING_automation_test_example.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_createScene_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_keypressScene_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_registerPyAction_issue2_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_sceneUI_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_setScene_currentScene_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_timer_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_click_issue78_analysis.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_click_issue78_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_screenshot_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_screenshot_test_simple.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
debug_render_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
empty_script.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
exit_immediately_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
force_non_interactive.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
issue78_middle_click_fix_test.py Fix Issue #78: Middle mouse click no longer sends 'C' keyboard event 2025-07-03 19:42:32 -04:00
screenshot_transparency_fix_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
simple_timer_screenshot_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
test_stdin_theory.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
trace_exec_behavior.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
trace_interactive.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Entity_issue73_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Frame_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Frame_test_detailed.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Grid_none_texture_test.py Fix Grid to support None/null texture and fix error message bug 2025-07-03 19:40:42 -04:00
ui_Grid_null_texture_test.py Fix Grid to support None/null texture and fix error message bug 2025-07-03 19:40:42 -04:00
ui_Grid_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Grid_test_no_grid.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Grid_test_simple.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Sprite_issue19_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_UICollection_issue69_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
validate_screenshot_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
working_timer_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00