Files
PojavLauncher_iOS/Natives/customcontrols/ControlButton.h
T
khanhduytran0 b0203d6fc7 Text input for jar launcher, update lib, fixes
News
- Added text input support for jar launcher.
- Updated MoltenVK to https://github.com/KhronosGroup/MoltenVK/commit/d880f4c

Internal changes
- Added more handling cases to avoid missing call to pojav_initOpenGL()
- Moved custom control’s global functions and properties to ControlLayout.
- Moved dylib framework outside its folder, as it’s not necessary to be bundled in framework.
- Reusing custom controls to produce flexible buttons in jar launcher, which might be extended in the future.

Fixes
- Multistage text input (Japanese, Chinese, etc) should now work again.
- Pointer lock should now function properly again.

- Updated README.md to reflect current stuff
2023-01-19 09:54:55 +07:00

28 lines
644 B
Objective-C

#import <UIKit/UIKit.h>
/**
* Custom controls have similar format as Android.
*
* Android - iOS:
* ControlButton - same
* ControlData - NSDictionary
*/
@interface ControlButton : UIButton {
}
@property BOOL canBeHidden, isToggleOn;
@property(nonatomic) NSMutableDictionary* properties;
@property(nonatomic) UIColor* savedBackgroundColor;
+ (id)buttonWithProperties:(NSMutableDictionary *)propArray;
- (BOOL)canSnap:(ControlButton *)button;
- (NSString *)generateDynamicX:(CGFloat)x;
- (NSString *)generateDynamicY:(CGFloat)y;
- (void)snapAndAlignX:(CGFloat)x Y:(CGFloat)y;
- (void)preProcessProperties;
- (void)update;
@end