* 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?)
20 lines
447 B
Objective-C
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
|