Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
hwzhangchuang
2023-12-09 20:47:16 +08:00
parent 9f94b14c8b
commit e44b611442
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -223,7 +223,7 @@ bool InputHub::IsTouchPad(const InputDevice &inputDevice)
return true;
}
void InputHub::MatchAndDealEvent(const RawEvent &event)
void InputHub::MatchAndDealEvent(Device *device, const RawEvent &event)
{
// Deal key state
if (event.type == EV_KEY && event.code != BTN_TOOL_FINGER && event.value == KEY_DOWN_STATE) {
@@ -289,7 +289,7 @@ void InputHub::RecordDeviceChangeStates(Device *device, struct input_event readB
event.value = iev.value;
event.path = device->path;
event.descriptor = isTouchEvent ? touchDescriptor : device->identifier.descriptor;
MatchAndDealEvent(event);
MatchAndDealEvent(device, event);
}
DHLOGD("RecordDeviceChangeStates end.");
}