MCPcopy Create free account
hub / github.com/PixlOne/logiops / _toEventCode

Method _toEventCode

src/logid/InputDevice.cpp:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153uint InputDevice::_toEventCode(uint type, const std::string& name) {
154 int code = libevdev_event_code_from_name(type, name.c_str());
155
156 if (code == -1)
157 throw InvalidEventCode(name);
158
159 return code;
160}
161
162void InputDevice::_enableEvent(const uint type, const uint code) {
163 std::unique_lock lock(_input_mutex);

Callers

nothing calls this directly

Calls 1

InvalidEventCodeClass · 0.85

Tested by

no test coverage detected