| 151 | } |
| 152 | |
| 153 | uint 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 | |
| 162 | void InputDevice::_enableEvent(const uint type, const uint code) { |
| 163 | std::unique_lock lock(_input_mutex); |
nothing calls this directly
no test coverage detected