Files
VoidLink/VoidLink/Input/RelativeTouchHandler.h
T
TrueZhuanjia 620385501f relativeTouch improvements:
- fix micro move issue
- fix clumsy move in portrait mode
2025-07-01 23:49:02 +08:00

30 lines
844 B
Objective-C

//
// RelativeTouchHandler.h
// Moonlight
//
// Created by Cameron Gutman on 11/1/20.
// Copyright © 2020 Moonlight Game Streaming Project. All rights reserved
//
// Modified by True砖家 since 2024.6.23
// Copyright © 2024 True砖家 @ Bilibili. All rights reserved
//
#import "StreamView.h"
#import "DataManager.h"
#import "CustomTapGestureRecognizer.h"
#define RIGHTCLICK_TAP_DOWN_TIME_THRESHOLD_S 0.15
NS_ASSUME_NONNULL_BEGIN
@interface RelativeTouchHandler : UIResponder
@property (nonatomic, readonly) CustomTapGestureRecognizer* mouseRightClickTapRecognizer; // this object will be passed to onscreencontrol class for areVirtualControllerTaps flag setting
@property (nonatomic, strong) CADisplayLink *displayLink;
- (id)initWithView:(StreamView*)view andSettings:(TemporarySettings*)settings;
@end
NS_ASSUME_NONNULL_END