Show every event with comments in generated code

This commit is contained in:
Isaiah Odhner 2023-09-10 01:53:41 -04:00
parent baa2b8cbc6
commit 9739422936

View File

@ -162,6 +162,7 @@ class PilotRecorder():
helpers: dict[str, str] = {}
steps_code = ""
for step_index, (event, offset, selector, index) in enumerate(self.steps):
steps_code += f"# {event!r}, {offset!r}, {selector!r}, {index!r})\n"
if isinstance(event, (MouseDown, MouseMove)):
pass
elif isinstance(event, MouseUp):