resizable dPad buttons

This commit is contained in:
TrueZhuangjia committed 2024-10-12 23:56:21 +08:00
1 parent fadf023563
commit ada2e6f480
3 files changed
+52 -28

No files matched your search

+6 -1
View File
@@ -17,7 +17,12 @@
static const float D_PAD_DIST = 10;
static const float BUTTON_DIST = 20;
@interface OnScreenControls : NSObject
@interface OnScreenControls : NSObject{
@protected
CGFloat _leftStickSizeFactor;
CGFloat _rightStickSizeFactor;
CGFloat _dPadSizeFactor;
}
typedef NS_ENUM(NSInteger, OnScreenControlsLevel) {
OnScreenControlsLevelOff,