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"
|
2014-10-20 02:38:01 -04:00
|
|
|
|
2015-05-29 00:46:43 -07:00
|
|
|
@protocol EdgeDetectionDelegate <NSObject>
|
|
|
|
|
|
|
|
|
|
- (void) edgeSwiped;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2019-11-02 15:17:52 -07:00
|
|
|
@protocol UserInteractionDelegate <NSObject>
|
|
|
|
|
|
|
|
|
|
- (void) userInteractionBegan;
|
|
|
|
|
- (void) userInteractionEnded;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2020-03-24 18:14:50 -07:00
|
|
|
@interface StreamView : OSView <X1KitMouseDelegate>
|
2018-08-25 15:22:32 -07:00
|
|
|
|
|
|
|
|
@property (nonatomic, retain) IBOutlet UITextField* keyInputField;
|
2014-10-20 02:38:01 -04:00
|
|
|
|
2019-11-02 15:17:52 -07:00
|
|
|
- (void) setupStreamView:(ControllerSupport*)controllerSupport swipeDelegate:(id<EdgeDetectionDelegate>)swipeDelegate interactionDelegate:(id<UserInteractionDelegate>)interactionDelegate;
|
2019-10-22 00:16:20 -04:00
|
|
|
- (void) showOnScreenControls;
|
2015-01-10 00:37:34 -05:00
|
|
|
- (void) setMouseDeltaFactors:(float)x y:(float)y;
|
2019-10-22 00:16:20 -04:00
|
|
|
- (OnScreenControlsLevel) getCurrentOscState;
|
2014-12-28 21:42:18 -05:00
|
|
|
|
2014-10-20 02:38:01 -04:00
|
|
|
@end
|