excludes on-screen controller & button taps for mouse scroller gesture in relative touch mode

This commit is contained in:
True Zhuanjia
2024-09-02 22:01:30 +08:00
parent 2b5a1c0551
commit dcdfbc7394
7 changed files with 51 additions and 17 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
isInputingText = false;
keyboardToggleRecognizer = [[CustomTapGestureRecognizer alloc] initWithTarget:self action:@selector(toggleKeyboard)];
keyboardToggleRecognizer.numberOfTouchesRequired = settings.keyboardToggleFingers.intValue; //will be changed accordinly by touch modes.
keyboardToggleRecognizer.tapDownTimeThreshold = 0.3; // tap down time threshold in seconds.
keyboardToggleRecognizer.tapDownTimeThreshold = 0.2; // tap down time threshold in seconds.
keyboardToggleRecognizer.delaysTouchesBegan = NO;
keyboardToggleRecognizer.delaysTouchesEnded = NO;
[[NSNotificationCenter defaultCenter] addObserver:self