extract desktop control interface

This commit is contained in:
Keyvan Fatehi
2023-02-04 23:35:25 -08:00
parent 3aacf9dd60
commit 6b2c68017e
3 changed files with 47 additions and 35 deletions

View File

@@ -164,7 +164,7 @@ async def signal(signaling):
print(data)
elif data["type"] == "joystick":
webjoystick(data["x"], data["y"])
elif desktop_track and data["type"] in desktop_track.valid_actions:
elif desktop_track and data["type"] in desktop_track.control_interface.valid_actions:
desktop_track.handle_action(data["type"], data)
else:
print("ignored message")