MCPcopy Create free account
hub / github.com/78/tenbox / SendPointerEvent

Method SendPointerEvent

src/daemon/runtime_manager.cpp:940–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940bool RuntimeManager::SendPointerEvent(const std::string& vm_id, int x, int y, uint32_t buttons) {
941 auto session = FindSession(vm_id);
942 if (!session) return false;
943 ipc::Message message;
944 message.channel = ipc::Channel::kInput;
945 message.kind = ipc::Kind::kRequest;
946 message.type = "input.pointer_event";
947 message.vm_id = vm_id;
948 message.fields["x"] = std::to_string(x);
949 message.fields["y"] = std::to_string(y);
950 message.fields["buttons"] = std::to_string(buttons);
951 return SendRuntime(session, message);
952}
953
954bool RuntimeManager::SendWheelEvent(const std::string& vm_id, int delta) {
955 auto session = FindSession(vm_id);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected