- Slide from upper 40% of left & right screen edge to open in-stream menus will no longer sends touch event to remote PC
23 lines
797 B
Objective-C
23 lines
797 B
Objective-C
//
|
|
// CustomEdgeSlideGestureRecognizer.h
|
|
// Moonlight-ZWM
|
|
//
|
|
// Created by ZWM on 2024/4/30.
|
|
// Copyright © 2024 Moonlight Game Streaming Project. All rights reserved.
|
|
//
|
|
|
|
#ifndef CustomEdgeSlideGestureRecognizer_h
|
|
#define CustomEdgeSlideGestureRecognizer_h
|
|
// CustomEdgeSlideGestureRecognizer.h
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface CustomEdgeSlideGestureRecognizer : UIGestureRecognizer
|
|
|
|
@property (nonatomic, assign) UIRectEdge edges; // Specify the edge(s) you want to recognize the swipe gesture on
|
|
@property (nonatomic, assign) CGFloat normalizedThresholdDistance; // Distance from the edge to start recognizing the gesture
|
|
@property (nonatomic, assign) bool immediateTriggering;
|
|
@property (nonatomic, assign) CGFloat EDGE_TOLERANCE;
|
|
|
|
@end
|
|
#endif /* CustomEdgeSlideGestureRecognizer_h */
|