mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
tvOS: Add target conditionals to fix tvOS build (#15637)
* Add target conditionals to fix tvOS build * Use TARGET_OS_IOS for iOS
This commit is contained in:
parent
34b71339de
commit
6b0a5c978e
@ -50,6 +50,7 @@ extension CocoaView: HelperBarActionDelegate {
|
||||
}
|
||||
|
||||
func orientationLockButtonTapped() {
|
||||
#if TARGET_OS_IOS
|
||||
shouldLockCurrentInterfaceOrientation.toggle()
|
||||
if shouldLockCurrentInterfaceOrientation {
|
||||
let currentOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation ?? UIInterfaceOrientation.portrait
|
||||
@ -58,6 +59,7 @@ extension CocoaView: HelperBarActionDelegate {
|
||||
if #available(iOS 16, *) {
|
||||
setNeedsUpdateOfSupportedInterfaceOrientations()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
var isKeyboardEnabled: Bool {
|
||||
|
@ -68,8 +68,10 @@
|
||||
@property(nonatomic,strong) UIView *helperBarView;
|
||||
#endif
|
||||
|
||||
#if TARGET_OS_IOS
|
||||
@property(readwrite) BOOL shouldLockCurrentInterfaceOrientation;
|
||||
@property(readwrite) UIInterfaceOrientation lockInterfaceOrientation;
|
||||
#endif
|
||||
|
||||
+ (CocoaView*)get;
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user