modify the problem of mouse jump while using touchpad

Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
hwzhangchuang
2023-11-12 23:16:10 +08:00
parent 165c18f308
commit 574577e4c9
35 changed files with 695 additions and 376 deletions
+9
View File
@@ -17,6 +17,7 @@
#define OHOS_DISTRIBUTED_INPUT_UTILS_TOOL_H
#include <cstdint>
#include <linux/input.h>
#include <string>
#include "nlohmann/json.hpp"
@@ -56,6 +57,14 @@ void SplitStringToVector(const std::string &str, const char split, std::vector<s
int OpenInputDeviceFdByPath(const std::string &devicePath);
std::string ConvertErrNo();
void ScanInputDevicesPath(const std::string &dirName, std::vector<std::string> &vecInputDevPath);
/**
* If we pressed the sink keyboard while mouse pass throuth from source to sink, we need reset the virtual keyboard
* key states at the source side.
*/
void ResetVirtualDevicePressedKeys(const std::vector<std::string> &nodePaths);
std::string GetString(const std::vector<std::string> &vec);
} // namespace DistributedInput
} // namespace DistributedHardware
} // namespace OHOS