Files
PojavLauncher_iOS/Natives/customcontrols/ControlButton.h
T
Duy Tran Khanh c896da08bb A lot of more changes
* Custom controls:
- Unfinished v2 control
- Auto generate default.json, removed internal fallback control
- Compatible with Android's dp (might need scaling)
- Implemented properties: keycodes, bgColor, strokeColor, strokeWidth,
cornerRadius

* Other changes
- Updated MetalANGLE to 0.0.7
- Updated gl4es 1.1.5

* TODO:
- Control converter
- Drawer buttons
- Multiple keys support (?)
- Implement properties: opacity, isSwipeable, isToggle,
passThruEnabled, (maybe more?)
2021-07-23 16:51:51 +07:00

20 lines
447 B
Objective-C

#import <UIKit/UIKit.h>
/**
* Custom controls have similar format as Android.
*
* Android - iOS:
* ControlButton - same
* ControlData - NSDictionary
*/
@interface ControlButton : UIButton {
}
@property (nonatomic, strong) NSMutableDictionary* properties;
+ (id)initWithProperties:(NSMutableDictionary *)propArray;
+ (id)initWithName:(NSString *)name keycode:(int)keycode rect:(CGRect)rect transparency:(float)transparency;
@end