// // 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 *)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 *)touches withEvent:(nullable UIEvent *)event{ [super touchesMoved:touches withEvent:event]; } - (void)touchesEnded:(NSSet *)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 *)touches withEvent:(nullable UIEvent *)event{ [super touchesCancelled:touches withEvent:event]; } @end