- feat: slide & hold mode for slidable buttons

This commit is contained in:
TrueZhuanjia
2025-08-10 13:22:30 +08:00
parent 88c0e358aa
commit 3536bf06ba
8 changed files with 74 additions and 31 deletions
+1 -1
View File
@@ -454,7 +454,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
widgetView.trackballDecelerationRate = buttonState.decelerationRate;
widgetView.stickIndicatorOffset = buttonState.stickIndicatorOffset;
widgetView.minStickOffset = buttonState.minStickOffset;
widgetView.isSlidable = buttonState.isSlidable;
widgetView.slideMode = buttonState.slideMode;
// 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];