mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Shares the iOS frontend, with camera, location, motion, photo/document pickers, share sheet, clipboard, microphone, battery and rotation compiled out. The view controller is a GCEventViewController, so controllers only reach us through GCController, and the Siri Remote is read as a micro gamepad and sent as arrow/enter/escape/back keys. tvOS has no persistent storage besides NSUserDefaults, so the memory stick lives in Caches for now. Configure with -DIOS_PLATFORM=TVOS. The MoltenVK submodule gets the tvOS slice from the same stock v1.4.2 release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
58 lines
1.6 KiB
Objective-C
58 lines
1.6 KiB
Objective-C
#pragma once
|
|
|
|
#include "ppsspp_config.h"
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <GameController/GameController.h>
|
|
|
|
#if PPSSPP_PLATFORM(TVOS)
|
|
|
|
// The one view controller. Renders with Vulkan (MoltenVK) to a CAMetalLayer.
|
|
// A GCEventViewController, so controller input (the Siri Remote included) reaches us only through
|
|
// GCController, instead of also driving UIKit's focus engine.
|
|
@interface PPSSPPViewController : GCEventViewController
|
|
|
|
#else
|
|
|
|
#import <PhotosUI/PhotosUI.h>
|
|
|
|
#import "CameraHelper.h"
|
|
#import "LocationHelper.h"
|
|
|
|
// The one view controller. Renders with Vulkan (MoltenVK) to a CAMetalLayer.
|
|
@interface PPSSPPViewController : UIViewController<
|
|
PHPickerViewControllerDelegate,
|
|
CameraFrameDelegate, LocationHandlerDelegate,
|
|
UIGestureRecognizerDelegate>
|
|
|
|
#endif
|
|
|
|
- (void)hideKeyboard;
|
|
- (void)showKeyboard;
|
|
- (void)shareText:(NSString *)text;
|
|
- (void)shareFile:(NSURL *)url;
|
|
- (void)shutdown;
|
|
- (void)startLocation;
|
|
- (void)stopLocation;
|
|
- (void)startVideo:(int)width height:(int)height;
|
|
- (void)stopVideo;
|
|
- (void)appSwitchModeChanged;
|
|
- (void)immersiveModeChanged;
|
|
- (void)setupController:(GCController *)controller;
|
|
|
|
// Forwarded from the AppDelegate
|
|
- (void)didBecomeActive;
|
|
- (void)willResignActive;
|
|
|
|
- (void)uiStateChanged;
|
|
- (void)pickPhoto:(NSString *)saveFilename requestId:(int)requestId;
|
|
- (void)updateResolutionWithView:(UIView *)view;
|
|
|
|
@end
|
|
|
|
extern PPSSPPViewController *sharedViewController;
|
|
|
|
#define IS_IPAD() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
|
|
#define IS_IPHONE() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)
|