Define CustomTapGestureRecognizer to reliably toggle local keyboard, better than UITapGestureRecognizer

This commit is contained in:
True Zhuanjia committed 2024-05-15 16:56:47 +08:00
1 parent 208688afe1
commit b1b0be886e
4 files changed
+71 -5

No files matched your search

@@ -0,0 +1,20 @@
//
// CustomTapGestureRecognizer.h
// Moonlight
//
// Created by Admin on 2024/5/15.
// Copyright © 2024 Moonlight Game Streaming Project. All rights reserved.
//
#ifndef CustomTapGestureRecognizer_h
#define CustomTapGestureRecognizer_h
@interface CustomTapGestureRecognizer : UIGestureRecognizer
@property (nonatomic, assign) uint8_t numberOfTouchesRequired;
@property (nonatomic, assign) double tapDownTimeThreshold;
@end
#endif /* CustomTapGestureRecognizer_h */