- Completely refactor relative touch mode: implements quick double tap for dragging, simulates a real note book computer touchpad.
- Onscreen controllers, buttons & touchpad mouse able to work independently without blocking each other - Tap exclusion area size upto 1000%
This commit is contained in:
1 parent
22b4cc6222
commit
15bc488f71
8 files changed
+199
-131
No files matched your search
@@ -92,6 +92,7 @@ static CGFloat screenWidthInPoints;
|
||||
- (bool)containOnScreenButtonTaps {
|
||||
NSTimeInterval allFingersTapDownTime = CACurrentMediaTime() - _gestureCapturedTime; //RIGHTCLICK_TAP_DOWN_TIME_THRESHOLD_S has been passed to this recognizer as _tapDownTimeShreshold, we'll decide how to deal with pressed flag of on-screen button views based on tapDownTime
|
||||
bool gotOneButtonPressed = false;
|
||||
// the tap gestures are all added to the streamFrameTopLayerView, where all the onScreenButtonViews are added. so we can iterate them in this way:
|
||||
for(UIView* view in self.view.subviews){
|
||||
if ([view isKindOfClass:[OnScreenButtonView class]]) {
|
||||
OnScreenButtonView* buttonView = (OnScreenButtonView*) view;
|
||||
|
||||
Reference in new issue
Block a user