2013-02-20 19:52:52 -05:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 01:50:59 +01:00
|
|
|
* Copyright (C) 2013-2014 - Jason Fetters
|
2017-01-22 13:40:32 +01:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2017-12-11 23:55:31 -08:00
|
|
|
*
|
2013-02-20 19:52:52 -05:00
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2013-02-08 17:03:19 -05:00
|
|
|
|
2019-02-09 04:13:53 +01:00
|
|
|
#ifndef __COCOA_COMMON_H
|
|
|
|
#define __COCOA_COMMON_H
|
2013-07-05 03:34:34 +02:00
|
|
|
|
2019-02-09 04:21:01 +01:00
|
|
|
#include "cocoa_common_shared.h"
|
2015-04-19 19:50:29 +02:00
|
|
|
|
2019-02-09 04:28:06 +01:00
|
|
|
#if defined(HAVE_COCOATOUCH)
|
2019-01-26 13:18:32 -10:00
|
|
|
#if TARGET_OS_IOS
|
2016-02-26 13:32:56 +01:00
|
|
|
@interface CocoaView : UIViewController<CLLocationManagerDelegate,
|
|
|
|
AVCaptureAudioDataOutputSampleBufferDelegate>
|
2019-01-26 13:18:32 -10:00
|
|
|
#elif TARGET_OS_TV
|
|
|
|
@interface CocoaView : GCEventViewController
|
|
|
|
#endif
|
2015-04-20 20:39:39 +02:00
|
|
|
+ (CocoaView*)get;
|
2015-04-19 19:50:29 +02:00
|
|
|
@end
|
|
|
|
|
2016-02-26 13:32:56 +01:00
|
|
|
@interface RetroArch_iOS : UINavigationController<UIApplicationDelegate,
|
2018-11-04 09:29:40 -07:00
|
|
|
UINavigationControllerDelegate>
|
2015-04-19 19:50:29 +02:00
|
|
|
|
|
|
|
@property (nonatomic) UIWindow* window;
|
2015-04-20 12:09:56 +02:00
|
|
|
@property (nonatomic) NSString* documentsDirectory;
|
2015-05-12 10:45:26 -04:00
|
|
|
@property (nonatomic) RAMenuBase* mainmenu;
|
2015-09-21 16:52:28 -04:00
|
|
|
@property (nonatomic) int menu_count;
|
2017-12-11 23:55:31 -08:00
|
|
|
|
2015-04-19 19:50:29 +02:00
|
|
|
+ (RetroArch_iOS*)get;
|
|
|
|
|
|
|
|
- (void)showGameView;
|
|
|
|
- (void)toggleUI;
|
2016-01-16 12:09:44 -06:00
|
|
|
- (void)supportOtherAudioSessions;
|
2015-04-19 19:50:29 +02:00
|
|
|
|
|
|
|
- (void)refreshSystemConfig;
|
2015-09-21 16:52:28 -04:00
|
|
|
- (void)mainMenuPushPop: (bool)pushp;
|
2015-05-12 10:45:26 -04:00
|
|
|
- (void)mainMenuRefresh;
|
2015-04-19 19:50:29 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
void get_ios_version(int *major, int *minor);
|
|
|
|
|
2013-08-14 10:07:36 -04:00
|
|
|
#endif
|
2013-07-06 20:43:04 -04:00
|
|
|
|
2013-07-05 03:34:34 +02:00
|
|
|
#endif
|