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.");
}
+1 -1
View File
@@ -180,7 +180,7 @@ private:
* Record Mouse/KeyBoard/TouchPad state such as key down.
*/
void RecordDeviceChangeStates(Device *device, struct input_event readBuffer[], const size_t count);
void MatchAndDealEvent(const RawEvent &event);
void MatchAndDealEvent(Device *device, const RawEvent &event);
/*
* Scan the input device node and save info.
*/