Skip to content

Commit 5d34693

Browse files
committed
feat: add configurable drag speed and delay
Added new features to drag functionality: - Added startDelay parameter to specify delay before drag movement - Added dragSpeed parameter to control movement speed - Updated documentation in both English and Chinese This allows users to fine-tune both the timing and speed of drag movements.
1 parent ec5f413 commit 5d34693

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/KeyMapDes.md

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Description of the unique attributes of different key mapping types:
6060
-key The key code to be mapped
6161
-startPos Simulate the start position of touch drag
6262
-endPos Simulate the end position of touch drag
63+
-dragSpeed Speed of the drag movement (range 0-1, default 1.0). Higher values result in faster movements
64+
-startDelay Optional delay in milliseconds to wait after the initial touch before starting the drag movement
6365

6466
-KMT_STEER_WHEEL
6567
-centerPos steering wheel center point

docs/KeyMapDes_zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
- key 要映射的按键码
6161
- startPos 模拟触摸拖动的开始位置
6262
- endPos 模拟触摸拖动的结束位置
63+
- dragSpeed 拖动移动的速度(范围0-1,默认1.0)。数值越大,移动越快
64+
- startDelay 可选的延迟时间(毫秒),在开始拖动移动之前等待指定的时间
6365

6466
- KMT_STEER_WHEEL
6567
- centerPos 方向盘中心点
@@ -72,5 +74,3 @@
7274
- upOffset 按下上方向键后模拟拖动到相对centerPos位置水平偏上upOffset处
7375
- downOffset 按下下方向键后模拟拖动到相对centerPos位置水平偏下downOffset处
7476

75-
76-

0 commit comments

Comments
 (0)