!112 fix:add plugin subtype input

Merge pull request !112 from chen0088/master
This commit is contained in:
openharmony_ci
2023-12-02 02:23:30 +00:00
committed by Gitee
@@ -226,7 +226,8 @@ void DistributedInputHandler::NotifyHardWare(int iCnt)
if (this->m_listener != nullptr) {
std::string hdInfo;
StructTransJson(mEventBuffer[iCnt].deviceInfo, hdInfo);
this->m_listener->PluginHardware(mEventBuffer[iCnt].deviceInfo.descriptor, hdInfo);
std::string subtype = "input";
this->m_listener->PluginHardware(mEventBuffer[iCnt].deviceInfo.descriptor, hdInfo, subtype);
}
break;
case DeviceType::DEVICE_REMOVED: