feat: no click option for mousePad on-screen widget

This commit is contained in:
TrueZhuanjia
2025-08-28 13:23:35 +08:00
parent c7dd7a2c21
commit 967fbe8072
6 changed files with 84 additions and 19 deletions
+1
View File
@@ -1590,6 +1590,7 @@
<segment title="left button"/>
<segment title="middle button"/>
<segment title="right button"/>
<segment title="no click"/>
</segments>
<color key="tintColor" systemColor="systemGray3Color"/>
<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"/>
<segments>
<segment title="hovering"/>
<segment title="left button"/>
<segment title="middle button"/>
<segment title="right button"/>
<segment title="left btn"/>
<segment title="middle btn"/>
<segment title="right btn"/>
<segment title="no click"/>
</segments>
<color key="tintColor" systemColor="systemGray2Color"/>
<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,
middleButtonDown,
rightButtonDown,
noClick
};
typedef NS_ENUM(NSInteger, ButtonSlideMode) {
+3 -1
View File
@@ -1224,7 +1224,7 @@ import UIKit
LiSendMouseButtonEvent(CChar(BUTTON_ACTION_PRESS), BUTTON_MIDDLE)
case .rightButtonDown:
LiSendMouseButtonEvent(CChar(BUTTON_ACTION_PRESS), BUTTON_RIGHT)
case .hovering:
case .hovering,.noClick:
break
default:
break
@@ -1489,6 +1489,8 @@ import UIKit
quickDoubleTapDetected = false
}
mousePointerMoved = false // reset this flag
case .noClick:
break
default:
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" : {
"comment" : "Class = \"UILabel\"; text = \"90° Display Rotation\"; ObjectID = \"hAo-1k-oYF\";",
"extractionState" : "extracted_with_value",
+45 -15
View File
@@ -2936,95 +2936,125 @@
}
},
"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",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "left button"
"value" : "left btn"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "左键"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "左鍵"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "左鍵"
}
}
}
},
"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",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "middle button"
"value" : "middle btn"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "中键"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "中鍵"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "中鍵"
}
}
}
},
"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",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "right button"
"value" : "right btn"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "右键"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "右鍵"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"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]" : {
"comment" : "Class = \"UISegmentedControl\"; TJx-6E-kgr.segmentTitles[0] = \"No\"; ObjectID = \"TJx-6E-kgr\";",
"extractionState" : "extracted_with_value",