Skip to content

Commit

Permalink
CoreHaptics is trash.
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Jul 30, 2024
1 parent 035291b commit 53fc5a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iOS/GBHapticManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ - (void)setRumbleStrength:(double)rumble
rumble = 0;
}
if (rumble == 0) {
[_rumblePlayer stopAtTime:0 error:nil];
@try {
/* Why must every method from this framework randomly throw exceptions whenever
anything remotely unusual happens? CoreHaptic sucks.*/
[_rumblePlayer stopAtTime:0 error:nil];
}
@catch (NSException *exception) {}
_rumblePlayer = nil;
_rumble = 0;
return;
Expand Down

0 comments on commit 53fc5a7

Please sign in to comment.