1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- //
- // CloudPhoneViewController+RBDConnect.m
- // VclustersGemini
- //
- // Created by APPLE on 2021/8/16.
- // Copyright © 2021 APPLE. All rights reserved.
- //
- #import "PlayerViewController+TouchPointXD.h"
- @interface PlayerViewController(TouchPointXD)
- @end
- @implementation PlayerViewController(TouchPointXD)
- //#pragma mark ---UIResponder
- - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
- [super touchesBegan:touches withEvent:event];
-
- NSSet *allTouch = [event allTouches];
- UITouch *touch = [allTouch anyObject];
- CGPoint point = [touch locationInView:[touch view]];
- int x = point.x;
- int y = point.y;
-
- NSString *time_began = [NSString stringWithFormat:@"%zd",[iTools getNowTimeStampSS]];
- [HWDataManager setStringWithKey:@"XD_Began_x" value:[NSString stringWithFormat:@"%d",x]];
- [HWDataManager setStringWithKey:@"XD_Began_y" value:[NSString stringWithFormat:@"%d",y]];
- [HWDataManager setStringWithKey:@"XD_time_began" value:time_began];
- }
- - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event{
-
- [super touchesMoved:touches withEvent:event];
- }
- - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event{
-
- [super touchesEnded:touches withEvent:event];
-
- NSSet *allTouch = [event allTouches];
- UITouch *touch = [allTouch anyObject];
- CGPoint point = [touch locationInView:[touch view]];
- int x = point.x;
- int y = point.y;
-
- NSString *time_end = [NSString stringWithFormat:@"%zd",[iTools getNowTimeStampSS]];
- [HWDataManager setStringWithKey:@"XD_End_x" value:[NSString stringWithFormat:@"%d",x]];
- [HWDataManager setStringWithKey:@"XD_End_y" value:[NSString stringWithFormat:@"%d",y]];
- [HWDataManager setStringWithKey:@"XD_time_end_y" value:time_end];
- }
- - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event{
-
- [super touchesCancelled:touches withEvent:event];
-
- }
- @end
|