mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-20 21:41:02 -04:00
modify the problem of mouse jump while using touchpad
Signed-off-by: hwzhangchuang <zhangchuang.zhang@huawei.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user