From a9ede7a904b1fed1984c28803cf179b41ed257f6 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Tue, 3 Feb 2026 16:13:00 +0800 Subject: [PATCH] fixed: touchPad double tap button not released --- VoidLink/Input/OnScreenWidgetView.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index cf62b9f6..f810785c 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -29,7 +29,7 @@ import SVGKit @objc public static func setPostExclusiveUnfoldeds(_ sequences:NSSet){ let sequenceSet:Set = sequences as? Set ?? Set() postExclusiveUnfoldedSequences = Set(sequenceSet) - print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) \(CACurrentMediaTime())") + // print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) \(CACurrentMediaTime())") } @objc public weak var guidelineDelegate: OnScreenWidgetGuidelineUpdateDelegate? @@ -2553,8 +2553,11 @@ import SVGKit default: break } + if self.widgetType == .touchPad { + self.handleButtonUp() + } } - + if !OnScreenWidgetView.isTweakingHighlight { if CommandManager.stickTouchPads.contains(touchPadString){ self.l3r3Indicator.isHidden = true @@ -2902,7 +2905,7 @@ import SVGKit OnScreenWidgetView.set(folded: false, for: unfoldedExclusiveFolder!) } - print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) stamp \(CACurrentMediaTime())") + // print("postExclusiveUnfoldedSequences \(postExclusiveUnfoldedSequences) stamp \(CACurrentMediaTime())") for sequence in postExclusiveUnfoldedSequences { guard let folder = OnScreenWidgetView.mapping[sequence] else { continue } OnScreenWidgetView.set(folded: false, for: folder)