mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-21 05:45:23 -04:00
@@ -56,8 +56,8 @@ public:
|
||||
const std::string &sinkNodeDesc);
|
||||
void SyncNodeOfflineInfo(const std::string &srcDevId, const std::string &sinkDevId, const std::string &sinkNodeId);
|
||||
|
||||
void GetVirtualKeyboardPathsByDhIds(const std::vector<std::string> &dhIds, std::vector<std::string> &shareDhidsPaths,
|
||||
std::vector<std::string> &shareDhIds);
|
||||
void GetVirtualKeyboardPathsByDhIds(const std::vector<std::string> &dhIds,
|
||||
std::vector<std::string> &shareDhidsPaths, std::vector<std::string> &shareDhIds);
|
||||
|
||||
private:
|
||||
DistributedInputInject();
|
||||
|
||||
@@ -55,8 +55,8 @@ public:
|
||||
void GetDevicesInfoByDhId(std::vector<std::string> dhidsVec, std::map<int32_t, std::string> &datas);
|
||||
void ProcessInjectEvent(const std::shared_ptr<RawEvent> &rawEvent);
|
||||
|
||||
void GetVirtualKeyboardPathsByDhIds(const std::vector<std::string> &dhIds, std::vector<std::string> &shareDhidsPaths,
|
||||
std::vector<std::string> &shareDhIds);
|
||||
void GetVirtualKeyboardPathsByDhIds(const std::vector<std::string> &dhIds,
|
||||
std::vector<std::string> &shareDhidsPaths, std::vector<std::string> &shareDhIds);
|
||||
private:
|
||||
void AddDeviceLocked(const std::string& dhId, std::unique_ptr<VirtualDevice> device);
|
||||
int32_t CreateHandle(const InputDevice& inputDevice, const std::string& devId, const std::string& dhId);
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
namespace OHOS {
|
||||
namespace DistributedHardware {
|
||||
namespace DistributedInput {
|
||||
|
||||
DInputState::~DInputState()
|
||||
{
|
||||
Release();
|
||||
@@ -161,7 +160,7 @@ void DInputState::WriteEventToDev(int &fd, const input_event &event)
|
||||
void DInputState::SpecEveInject(const int32_t &sessionId, std::vector<std::string> dhids)
|
||||
{
|
||||
DHLOGI("SpecEveInject enter");
|
||||
//mouse event send to remote device
|
||||
// mouse event send to remote device
|
||||
if (sessionId != -1) {
|
||||
std::string mouseNodePath;
|
||||
std::string mouseNodeDhId;
|
||||
@@ -169,7 +168,7 @@ void DInputState::SpecEveInject(const int32_t &sessionId, std::vector<std::strin
|
||||
CheckMouseKeyState(sessionId, mouseNodePath, mouseNodeDhId);
|
||||
}
|
||||
|
||||
//keyboard up event inject local device
|
||||
// keyboard up event inject local device
|
||||
std::vector<std::string> keyboardNodePaths;
|
||||
std::vector<std::string> keyboardNodeDhIds;
|
||||
DistributedInputCollector::GetInstance().GetShareKeyboardPathsByDhIds(dhids, keyboardNodePaths, keyboardNodeDhIds);
|
||||
|
||||
Reference in New Issue
Block a user