mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 17:43:35 -04:00
@@ -1330,7 +1330,7 @@ InputHub::Device::Device(int fd, int32_t id, const std::string &path)
|
||||
: next(nullptr), fd(fd), id(id), path(path), identifier({}), classes(0), enabled(false),
|
||||
isShare(false), isVirtual(fd < 0) {
|
||||
// Figure out the kinds of events the device reports.
|
||||
DHLOGE("Ctor Device for get event mask, fd: %d, id: %d, path: %d", fd, id, path.c_str());
|
||||
DHLOGE("Ctor Device for get event mask, fd: %d, id: %d, path: %s", fd, id, path.c_str());
|
||||
ioctl(fd, EVIOCGBIT(0, sizeof(evBitmask)), evBitmask);
|
||||
ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(keyBitmask)), keyBitmask);
|
||||
ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(absBitmask)), absBitmask);
|
||||
|
||||
@@ -526,7 +526,7 @@ void DistributedInputNodeManager::ProcessInjectEvent(const std::shared_ptr<RawEv
|
||||
.code = event.code,
|
||||
.value = KEY_DOWN_STATE
|
||||
};
|
||||
DHLOGI("InjectEvent dhId: %s, eventType: %d, eventCode: %d, eventValue: %d, when: " PRId64"",
|
||||
DHLOGI("Spec Inject KEY DOWN dhId: %s, eventType: %d, eventCode: %d, eventValue: %d, when: " PRId64"",
|
||||
GetAnonyString(dhId).c_str(), event.type, event.code, event.value, rawEvent->when);
|
||||
InjectInputEvent(dhId, inputEvent);
|
||||
|
||||
@@ -535,7 +535,7 @@ void DistributedInputNodeManager::ProcessInjectEvent(const std::shared_ptr<RawEv
|
||||
.code = 0,
|
||||
.value = 0
|
||||
};
|
||||
DHLOGI("InjectEvent dhId: %s, eventType: %d, eventCode: %d, eventValue: %d, when: " PRId64"",
|
||||
DHLOGI("Spec Inject KEY SYNC dhId: %s, eventType: %d, eventCode: %d, eventValue: %d, when: " PRId64"",
|
||||
GetAnonyString(dhId).c_str(), event.type, event.code, event.value, rawEvent->when);
|
||||
InjectInputEvent(dhId, inputEvent);
|
||||
UpdateSpecEventFirstStatus(true);
|
||||
|
||||
Reference in New Issue
Block a user