- vertical stick indicator offset

- smaller stick indicator cross
- animation for stick ball return
- border detection for stick ball
- allow zero alpha for custom on-screen touch pads
This commit is contained in:
TrueZhuangjia
2025-02-26 22:48:10 +08:00
parent a17a27005d
commit 3efddab070
6 changed files with 89 additions and 34 deletions
@@ -292,7 +292,7 @@ static NSMutableDictionary *OnScreenWidgetViewsDict;
buttonState.backgroundAlpha = widgetView.backgroundAlpha;
buttonState.borderWidth = widgetView.borderWidth;
buttonState.sensitivityFactor = widgetView.sensitivityFactor;
buttonState.stickIndicatorXOffset = widgetView.stickIndicatorXOffset;
buttonState.stickIndicatorOffset = widgetView.stickIndicatorOffset;
NSData *buttonStateEncoded = [NSKeyedArchiver archivedDataWithRootObject:buttonState requiringSecureCoding:YES error:nil];
[buttonStatesEncoded addObject: buttonStateEncoded];