mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
This uses the old UIKeyInput which is a bit limited language-wise, however, it's enough to log into RetroAchievements and change your nickname, at least, and it was the easiest to implement. So, this solves 90% of the problems caused by missing keyboard support, at least.
27 lines
728 B
Objective-C
27 lines
728 B
Objective-C
// ViewController.h boilerplate
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <GLKit/GLKit.h>
|
|
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1
|
|
#import <GameController/GameController.h>
|
|
#endif
|
|
#import "iCade/iCadeReaderView.h"
|
|
#import "CameraHelper.h"
|
|
#import "LocationHelper.h"
|
|
|
|
@interface ViewController : GLKViewController <iCadeEventDelegate,
|
|
LocationHandlerDelegate, CameraFrameDelegate, UIGestureRecognizerDelegate, UIKeyInput>
|
|
|
|
- (void)shareText:(NSString *)text;
|
|
- (void)shutdown;
|
|
- (void)hideKeyboard;
|
|
- (void)showKeyboard;
|
|
|
|
@end
|
|
|
|
extern __unsafe_unretained ViewController* sharedViewController;
|
|
void setCameraSize(int width, int height);
|
|
void startVideo();
|
|
void stopVideo();
|
|
void startLocation();
|
|
void stopLocation();
|