forked from artginzburg/MiddleClick-Sonoma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request artginzburg#62 from gm-vm/improved_tap_detection
Improve the detection of taps
- Loading branch information
Showing
5 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// The number of fingers needed to simulate a middle click. | ||
#define kFingersNum @"fingers" | ||
#define kFingersNumDefault 3 | ||
|
||
// The maximum distance the cursor can travel between touch and release for a tap to be considered valid. | ||
// The position is normalized and values go from 0 to 1. | ||
#define kMaxDistanceDelta @"maxDistanceDelta" | ||
#define kMaxDistanceDeltaDefault 0.4f | ||
|
||
// The maximum interval in milliseconds between touch and release for a tap to be considered valid. | ||
#define kMaxTimeDeltaMs @"maxTimeDelta" | ||
#define kMaxTimeDeltaMsDefault 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters