mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-07-30 20:48:39 +00:00
feat: optimize drag and add tiktok map
This commit is contained in:
parent
650f471ed7
commit
e00a3b4573
8 changed files with 109 additions and 26 deletions
|
@ -7,7 +7,8 @@
|
|||
},
|
||||
"speedRatio": 10
|
||||
},
|
||||
"keyMapNodes": [{
|
||||
"keyMapNodes": [
|
||||
{
|
||||
"comment": "方向盘",
|
||||
"type": "KMT_STEER_WHEEL",
|
||||
"centerPos": {
|
||||
|
|
67
keymap/tiktok.json
Normal file
67
keymap/tiktok.json
Normal file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"switchKey": "Key_QuoteLeft",
|
||||
"keyMapNodes": [
|
||||
{
|
||||
"comment": "暂停/继续",
|
||||
"type": "KMT_CLICK",
|
||||
"key": "Key_Space",
|
||||
"pos": {
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"switchMap": false
|
||||
},
|
||||
{
|
||||
"comment": "上滑",
|
||||
"type": "KMT_DRAG",
|
||||
"key": "Key_Up",
|
||||
"startPos": {
|
||||
"x": 0.5,
|
||||
"y": 0.7
|
||||
},
|
||||
"endPos": {
|
||||
"x": 0.5,
|
||||
"y": 0.3
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "下滑",
|
||||
"type": "KMT_DRAG",
|
||||
"key": "Key_Down",
|
||||
"startPos": {
|
||||
"x": 0.5,
|
||||
"y": 0.3
|
||||
},
|
||||
"endPos": {
|
||||
"x": 0.5,
|
||||
"y": 0.7
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "左滑",
|
||||
"type": "KMT_DRAG",
|
||||
"key": "Key_Left",
|
||||
"startPos": {
|
||||
"x": 0.7,
|
||||
"y": 0.5
|
||||
},
|
||||
"endPos": {
|
||||
"x": 0.3,
|
||||
"y": 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "右滑",
|
||||
"type": "KMT_DRAG",
|
||||
"key": "Key_Right",
|
||||
"startPos": {
|
||||
"x": 0.3,
|
||||
"y": 0.5
|
||||
},
|
||||
"endPos": {
|
||||
"x": 0.7,
|
||||
"y": 0.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue