- legacy osc vibration style

- vibration style ios13 compatibility
- low ios verision UI fixes
This commit is contained in:
TrueZhuanjia committed 2025-06-22 10:11:11 +08:00
1 parent 47bae92dd5
commit cd4c5bbc56
10 files changed
+229 -67

No files matched your search

@@ -337,6 +337,14 @@ static CGRect streamViewBounds;
buttonState.isHidden = oscButtonLayer.isHidden;
buttonState.oscLayerSizeFactor = [OnScreenControls getControllerLayerSizeFactor:oscButtonLayer];
buttonState.backgroundAlpha = oscButtonLayer.opacity;
NSNumber *style = [OnScreenControls.layerVibrationStyleDic objectForKey:oscButtonLayer.name];
if ([style isKindOfClass:[NSNumber class]]) {
buttonState.vibrationStyle = [style unsignedCharValue];
// 使用 val
}
else buttonState.vibrationStyle = UIImpactFeedbackStyleLight;
// NSLog(@"oscLayerName: %@, opacity: %f, ", oscButtonLayer.name, buttonState.backgroundAlpha);