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

Method PushKeyEvent

src/runtime/runtime_service.cpp:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void ManagedInputPort::PushKeyEvent(const KeyboardEvent& ev) {
108 KeyCallback cb;
109 {
110 std::lock_guard<std::mutex> lock(mutex_);
111 cb = key_callback_;
112 }
113 if (cb) {
114 cb(ev);
115 return;
116 }
117 std::lock_guard<std::mutex> lock(mutex_);
118 key_queue_.push_back(ev);
119}
120
121void ManagedInputPort::PushPointerEvent(const PointerEvent& ev) {
122 PointerCallback cb;

Callers 1

HandleMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected