remove useless code

This commit is contained in:
TrueZhuanjia committed 2025-07-06 23:38:00 +08:00
1 parent e10a296305
commit 07b6aa099b
3 files changed
-14

No files matched your search

-1
View File
@@ -16,7 +16,6 @@
- (void)gamepadPresenceChanged; - (void)gamepadPresenceChanged;
- (void)mousePresenceChanged; - (void)mousePresenceChanged;
- (void)streamExitRequested; - (void)streamExitRequested;
- (void)automaticallyStartSendingGyroEvents;
@end @end
-8
View File
@@ -1379,13 +1379,6 @@ static const double MOUSE_SPEED_DIVISOR = 1.25;
for(VoidController* controller in _voidControllers.allValues) [self updateTimerStateForController:controller]; for(VoidController* controller in _voidControllers.allValues) [self updateTimerStateForController:controller];
break; break;
} }
if(_gyroMode != GyroModeOff){
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)),
dispatch_get_main_queue(), ^{
// [self->_delegate automaticallyStartSendingGyroEvents]; // this will discontine any control events sent to the remote side for a instant. anyway it works out as signature describes
});
}
} }
@@ -1577,7 +1570,6 @@ static const double MOUSE_SPEED_DIVISOR = 1.25;
[self updateFinished:self->_oscController]; [self updateFinished:self->_oscController];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)),
dispatch_get_main_queue(), ^{ dispatch_get_main_queue(), ^{
//[self->_delegate automaticallyStartSendingGyroEvents]; // this will discontine any control events sent to the remote side for a instant. anyway it works out as signature describes
[self updateTimerStateForController:self->_oscController]; [self updateTimerStateForController:self->_oscController];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)),
@@ -219,11 +219,6 @@
NSLog(@"streamview gestures: %d", (uint32_t)[_streamView.gestureRecognizers count]); NSLog(@"streamview gestures: %d", (uint32_t)[_streamView.gestureRecognizers count]);
} }
-(void)automaticallyStartSendingGyroEvents{
[_controllerSupport updateControllerSupport:self.streamConfig delegate:self];// reload controllerSupport obj, this is mandatory for OSC reload,especially when the stream view is launched without OSC
}
- (void)viewDidAppear:(BOOL)animated - (void)viewDidAppear:(BOOL)animated
{ {
[super viewDidAppear:animated]; [super viewDidAppear:animated];