diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index 2f85b25..a3d2878 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -211,8 +211,10 @@ size_t InputHub::CollectEvent(RawEvent* buffer, size_t& capacity, Device* device std::vector needFilted(capacity, false); bool isTouchEvent = false; if ((device->classes & INPUT_DEVICE_CLASS_TOUCH_MT) || (device->classes & INPUT_DEVICE_CLASS_TOUCH)) { - isTouchEvent = true; - HandleTouchScreenEvent(readBuffer, count, needFilted); + if (device->identifier.relTypes.size() != 0) { + isTouchEvent = true; + HandleTouchScreenEvent(readBuffer, count, needFilted); + } } RawEvent* event = buffer;