2014-10-20 02:38:01 -04:00
|
|
|
//
|
|
|
|
|
// StreamView.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-10-20 02:38:01 -04:00
|
|
|
//
|
|
|
|
|
// Created by Cameron Gutman on 10/19/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-10-20 02:38:01 -04:00
|
|
|
//
|
|
|
|
|
|
2015-01-09 16:13:44 -05:00
|
|
|
#import "ControllerSupport.h"
|
2019-10-22 00:16:20 -04:00
|
|
|
#import "OnScreenControls.h"
|
2020-01-16 19:52:49 -08:00
|
|
|
#import "Moonlight-Swift.h"
|
2020-04-18 14:00:26 -07:00
|
|
|
#import "StreamConfiguration.h"
|
2014-10-20 02:38:01 -04:00
|
|
|
|
2019-11-02 15:17:52 -07:00
|
|
|
@protocol UserInteractionDelegate <NSObject>
|
|
|
|
|
|
|
|
|
|
- (void) userInteractionBegan;
|
|
|
|
|
- (void) userInteractionEnded;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2020-04-18 13:11:24 -07:00
|
|
|
#if TARGET_OS_TV
|
2020-11-01 16:50:02 -06:00
|
|
|
@interface StreamView : UIView <X1KitMouseDelegate, UITextFieldDelegate>
|
2020-04-18 13:11:24 -07:00
|
|
|
#else
|
2020-11-01 16:50:02 -06:00
|
|
|
@interface StreamView : UIView <X1KitMouseDelegate, UITextFieldDelegate, UIPointerInteractionDelegate>
|
2020-04-18 13:11:24 -07:00
|
|
|
#endif
|
2018-08-25 15:22:32 -07:00
|
|
|
|
2020-04-18 14:00:26 -07:00
|
|
|
- (void) setupStreamView:(ControllerSupport*)controllerSupport
|
|
|
|
|
interactionDelegate:(id<UserInteractionDelegate>)interactionDelegate
|
|
|
|
|
config:(StreamConfiguration*)streamConfig;
|
2019-10-22 00:16:20 -04:00
|
|
|
- (void) showOnScreenControls;
|
|
|
|
|
- (OnScreenControlsLevel) getCurrentOscState;
|
2014-12-28 21:42:18 -05:00
|
|
|
|
2020-11-01 10:30:39 -06:00
|
|
|
#if !TARGET_OS_TV
|
2020-11-01 14:43:55 -06:00
|
|
|
- (void) updateCursorLocation:(CGPoint)location isMouse:(BOOL)isMouse;
|
2020-11-01 10:30:39 -06:00
|
|
|
#endif
|
|
|
|
|
|
2014-10-20 02:38:01 -04:00
|
|
|
@end
|