feat: no click option for mousePad on-screen widget

This commit is contained in:
TrueZhuanjia committed 2025-08-28 13:23:35 +08:00
1 parent c7dd7a2c21
commit 967fbe8072
6 files changed
+84 -19

No files matched your search

+1
View File
@@ -1590,6 +1590,7 @@
<segment title="left button"/> <segment title="left button"/>
<segment title="middle button"/> <segment title="middle button"/>
<segment title="right button"/> <segment title="right button"/>
<segment title="no click"/>
</segments> </segments>
<color key="tintColor" systemColor="systemGray3Color"/> <color key="tintColor" systemColor="systemGray3Color"/>
<color key="selectedSegmentTintColor" red="0.23087820410000001" green="0.4576539993" blue="0.51765710119999997" alpha="1" colorSpace="custom" customColorSpace="displayP3"/> <color key="selectedSegmentTintColor" red="0.23087820410000001" green="0.4576539993" blue="0.51765710119999997" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
+4 -3
View File
@@ -554,9 +554,10 @@
<color key="backgroundColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<segments> <segments>
<segment title="hovering"/> <segment title="hovering"/>
<segment title="left button"/> <segment title="left btn"/>
<segment title="middle button"/> <segment title="middle btn"/>
<segment title="right button"/> <segment title="right btn"/>
<segment title="no click"/>
</segments> </segments>
<color key="tintColor" systemColor="systemGray2Color"/> <color key="tintColor" systemColor="systemGray2Color"/>
<color key="selectedSegmentTintColor" red="0.23136288839999999" green="0.45776400810000001" blue="0.5149240678" alpha="1" colorSpace="custom" customColorSpace="displayP3"/> <color key="selectedSegmentTintColor" red="0.23136288839999999" green="0.45776400810000001" blue="0.5149240678" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
@@ -55,6 +55,7 @@ typedef NS_ENUM(NSInteger, MouseButtonAction) {
leftButtonDown, leftButtonDown,
middleButtonDown, middleButtonDown,
rightButtonDown, rightButtonDown,
noClick
}; };
typedef NS_ENUM(NSInteger, ButtonSlideMode) { typedef NS_ENUM(NSInteger, ButtonSlideMode) {
+3 -1
View File
@@ -1224,7 +1224,7 @@ import UIKit
LiSendMouseButtonEvent(CChar(BUTTON_ACTION_PRESS), BUTTON_MIDDLE) LiSendMouseButtonEvent(CChar(BUTTON_ACTION_PRESS), BUTTON_MIDDLE)
case .rightButtonDown: case .rightButtonDown:
LiSendMouseButtonEvent(CChar(BUTTON_ACTION_PRESS), BUTTON_RIGHT) LiSendMouseButtonEvent(CChar(BUTTON_ACTION_PRESS), BUTTON_RIGHT)
case .hovering: case .hovering,.noClick:
break break
default: default:
break break
@@ -1489,6 +1489,8 @@ import UIKit
quickDoubleTapDetected = false quickDoubleTapDetected = false
} }
mousePointerMoved = false // reset this flag mousePointerMoved = false // reset this flag
case .noClick:
break
default: default:
break break
} }
+30
View File
@@ -1765,6 +1765,36 @@
} }
} }
}, },
"H8S-aI-EBo.segmentTitles[4]" : {
"comment" : "Class = \"UISegmentedControl\"; H8S-aI-EBo.segmentTitles[4] = \"no click\"; ObjectID = \"H8S-aI-EBo\";",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "no click"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "无点击"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "無點擊"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "無點擊"
}
}
}
},
"hAo-1k-oYF.text" : { "hAo-1k-oYF.text" : {
"comment" : "Class = \"UILabel\"; text = \"90° Display Rotation\"; ObjectID = \"hAo-1k-oYF\";", "comment" : "Class = \"UILabel\"; text = \"90° Display Rotation\"; ObjectID = \"hAo-1k-oYF\";",
"extractionState" : "extracted_with_value", "extractionState" : "extracted_with_value",
+45 -15
View File
@@ -2936,95 +2936,125 @@
} }
}, },
"tE5-Bm-4OB.segmentTitles[1]" : { "tE5-Bm-4OB.segmentTitles[1]" : {
"comment" : "Class = \"UISegmentedControl\"; tE5-Bm-4OB.segmentTitles[1] = \"left button\"; ObjectID = \"tE5-Bm-4OB\";", "comment" : "Class = \"UISegmentedControl\"; tE5-Bm-4OB.segmentTitles[1] = \"left btn\"; ObjectID = \"tE5-Bm-4OB\";",
"extractionState" : "extracted_with_value", "extractionState" : "extracted_with_value",
"localizations" : { "localizations" : {
"en" : { "en" : {
"stringUnit" : { "stringUnit" : {
"state" : "new", "state" : "new",
"value" : "left button" "value" : "left btn"
} }
}, },
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "左键" "value" : "左键"
} }
}, },
"zh-Hant" : { "zh-Hant" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "左鍵" "value" : "左鍵"
} }
}, },
"zh-HK" : { "zh-HK" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "左鍵" "value" : "左鍵"
} }
} }
} }
}, },
"tE5-Bm-4OB.segmentTitles[2]" : { "tE5-Bm-4OB.segmentTitles[2]" : {
"comment" : "Class = \"UISegmentedControl\"; tE5-Bm-4OB.segmentTitles[2] = \"middle button\"; ObjectID = \"tE5-Bm-4OB\";", "comment" : "Class = \"UISegmentedControl\"; tE5-Bm-4OB.segmentTitles[2] = \"middle btn\"; ObjectID = \"tE5-Bm-4OB\";",
"extractionState" : "extracted_with_value", "extractionState" : "extracted_with_value",
"localizations" : { "localizations" : {
"en" : { "en" : {
"stringUnit" : { "stringUnit" : {
"state" : "new", "state" : "new",
"value" : "middle button" "value" : "middle btn"
} }
}, },
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "中键" "value" : "中键"
} }
}, },
"zh-Hant" : { "zh-Hant" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "中鍵" "value" : "中鍵"
} }
}, },
"zh-HK" : { "zh-HK" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "中鍵" "value" : "中鍵"
} }
} }
} }
}, },
"tE5-Bm-4OB.segmentTitles[3]" : { "tE5-Bm-4OB.segmentTitles[3]" : {
"comment" : "Class = \"UISegmentedControl\"; tE5-Bm-4OB.segmentTitles[3] = \"right button\"; ObjectID = \"tE5-Bm-4OB\";", "comment" : "Class = \"UISegmentedControl\"; tE5-Bm-4OB.segmentTitles[3] = \"right btn\"; ObjectID = \"tE5-Bm-4OB\";",
"extractionState" : "extracted_with_value", "extractionState" : "extracted_with_value",
"localizations" : { "localizations" : {
"en" : { "en" : {
"stringUnit" : { "stringUnit" : {
"state" : "new", "state" : "new",
"value" : "right button" "value" : "right btn"
} }
}, },
"zh-Hans" : { "zh-Hans" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "右键" "value" : "右键"
} }
}, },
"zh-Hant" : { "zh-Hant" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "右鍵" "value" : "右鍵"
} }
}, },
"zh-HK" : { "zh-HK" : {
"stringUnit" : { "stringUnit" : {
"state" : "translated", "state" : "needs_review",
"value" : "右鍵" "value" : "右鍵"
} }
} }
} }
}, },
"tE5-Bm-4OB.segmentTitles[4]" : {
"comment" : "Class = \"UISegmentedControl\"; tE5-Bm-4OB.segmentTitles[4] = \"no click\"; ObjectID = \"tE5-Bm-4OB\";",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "no click"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "无点击"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "無點擊"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "無點擊"
}
}
}
},
"TJx-6E-kgr.segmentTitles[0]" : { "TJx-6E-kgr.segmentTitles[0]" : {
"comment" : "Class = \"UISegmentedControl\"; TJx-6E-kgr.segmentTitles[0] = \"No\"; ObjectID = \"TJx-6E-kgr\";", "comment" : "Class = \"UISegmentedControl\"; TJx-6E-kgr.segmentTitles[0] = \"No\"; ObjectID = \"TJx-6E-kgr\";",
"extractionState" : "extracted_with_value", "extractionState" : "extracted_with_value",