Stub AbsoluteTouchHandler

This commit is contained in:
Cameron Gutman
2020-11-01 10:30:39 -06:00
parent 17d4079a5a
commit 63beaebe55
6 changed files with 65 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
//
// AbsoluteTouchHandler.h
// Moonlight
//
// Created by Cameron Gutman on 11/1/20.
// Copyright © 2020 Moonlight Game Streaming Project. All rights reserved.
//
#import "StreamView.h"
NS_ASSUME_NONNULL_BEGIN
@interface AbsoluteTouchHandler : UIResponder
-(id)initWithView:(StreamView*)view;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,33 @@
//
// AbsoluteTouchHandler.m
// Moonlight
//
// Created by Cameron Gutman on 11/1/20.
// Copyright © 2020 Moonlight Game Streaming Project. All rights reserved.
//
#import "AbsoluteTouchHandler.h"
@implementation AbsoluteTouchHandler {
StreamView* view;
}
- (id)initWithView:(StreamView*)view {
self = [self init];
self->view = view;
return self;
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
}
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
}
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
}
@end

View File

@@ -6,13 +6,13 @@
// Copyright © 2020 Moonlight Game Streaming Project. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "StreamView.h"
NS_ASSUME_NONNULL_BEGIN
@interface RelativeTouchHandler : UIResponder
-(id)initWithView:(UIView*)view;
-(id)initWithView:(StreamView*)view;
@end

View File

@@ -27,7 +27,7 @@ static const int REFERENCE_HEIGHT = 720;
UIView* view;
}
- (id)initWithView:(UIView*)view {
- (id)initWithView:(StreamView*)view {
self = [self init];
self->view = view;

View File

@@ -39,4 +39,8 @@
- (void) showOnScreenControls;
- (OnScreenControlsLevel) getCurrentOscState;
#if !TARGET_OS_TV
- (void) updateCursorLocation:(CGPoint)location;
#endif
@end