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

Method SendWheelEvent

src/daemon/runtime_manager.cpp:954–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954bool RuntimeManager::SendWheelEvent(const std::string& vm_id, int delta) {
955 auto session = FindSession(vm_id);
956 if (!session) return false;
957 ipc::Message message;
958 message.channel = ipc::Channel::kInput;
959 message.kind = ipc::Kind::kRequest;
960 message.type = "input.wheel_event";
961 message.vm_id = vm_id;
962 message.fields["delta"] = std::to_string(delta);
963 return SendRuntime(session, message);
964}
965
966bool RuntimeManager::SetDisplaySize(const std::string& vm_id, uint32_t width, uint32_t height) {
967 auto session = FindSession(vm_id);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected