- feat: tap to toggle on-screen button triggering

- fixed: special overlay button relocation
This commit is contained in:
TrueZhuanjia
2025-09-29 17:27:49 +08:00
parent 9bc518dc68
commit 2bb0ce086f
12 changed files with 178 additions and 106 deletions
+1 -1
View File
@@ -515,7 +515,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
widgetView.trackballDecelerationRate = buttonState.decelerationRate;
widgetView.stickIndicatorOffset = buttonState.stickIndicatorOffset;
widgetView.minStickOffset = buttonState.minStickOffset;
widgetView.slideMode = buttonState.slideMode;
widgetView.buttonTriggerMode = buttonState.buttonTriggerMode;
// Add the widgetView to the view controller's view
[self->streamFrameTopLayerView addSubview:widgetView]; // add keyboard button to the stream frame view. must add it to the target view before setting location.
buttonState.position = [self denormalizeWidgetPosition:buttonState.position];