def release_mouse (event): gdb.write("GDB/godot: Releasing mouse\n") gdb.execute("call OS::get_singleton()->set_mouse_mode(0)") gdb.events.stop.connect(release_mouse) gdb.write("GDB/godot: installed release mouse for godot\n")