RetroArch/ui/drivers/cocoa/cocoa_common.h

56 lines
1.6 KiB
C
Raw Normal View History

/* 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
*
* 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
#ifndef __COCOA_COMMON_H
#define __COCOA_COMMON_H
#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)
#if TARGET_OS_IOS
2016-02-26 13:32:56 +01:00
@interface CocoaView : UIViewController<CLLocationManagerDelegate,
AVCaptureAudioDataOutputSampleBufferDelegate>
#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,
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;
@property (nonatomic) RAMenuBase* mainmenu;
2015-09-21 16:52:28 -04:00
@property (nonatomic) int menu_count;
2015-04-19 19:50:29 +02:00
+ (RetroArch_iOS*)get;
- (void)showGameView;
- (void)toggleUI;
- (void)supportOtherAudioSessions;
2015-04-19 19:50:29 +02:00
- (void)refreshSystemConfig;
2015-09-21 16:52:28 -04:00
- (void)mainMenuPushPop: (bool)pushp;
- (void)mainMenuRefresh;
2015-04-19 19:50:29 +02:00
@end
void get_ios_version(int *major, int *minor);
#endif
2013-07-06 20:43:04 -04:00
#endif